org.apache.geronimo.messaging
Class Result

java.lang.Object
  extended byorg.apache.geronimo.messaging.Result
All Implemented Interfaces:
Externalizable, Serializable

public class Result
extends Object
implements Externalizable

Encapsulates the result of a Request.

Version:
$Revision: 1.2 $ $Date: 2004/06/10 23:12:24 $
See Also:
Serialized Form

Constructor Summary
Result()
          Required for Externalization.
Result(boolean anIsSuccess, Object anOpaque)
          Creates a result of a Request.
 
Method Summary
 Object getResult()
           
 Throwable getThrowable()
           
 boolean isSuccess()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Result

public Result()
Required for Externalization.


Result

public Result(boolean anIsSuccess,
              Object anOpaque)
Creates a result of a Request.

Parameters:
anIsSuccess - true if the request has been successful - no exception has been raised.
anOpaque - Result of the invocation.
Method Detail

isSuccess

public boolean isSuccess()

getThrowable

public Throwable getThrowable()

getResult

public Object getResult()

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.