org.spicefactory.pimento.io
Class PimentoResult

java.lang.Object
  extended by org.spicefactory.pimento.io.PimentoResult
All Implemented Interfaces:
Externalizable

public class PimentoResult
extends Object
implements Externalizable

Holds the result sent from the server in a Pimento-managed Cinnamon service request.

Author:
Jens Halm

Constructor Summary
PimentoResult()
          Creates a new instance.
PimentoResult(Object result)
          Creates a new instance
 
Method Summary
 void readExternal(DataInput input)
          Restores the content of this object from the DataInput instance.
 String toString()
           
 void writeExternal(DataOutput output)
          Saves the content of this object to the DataOutput instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PimentoResult

public PimentoResult()
Creates a new instance.


PimentoResult

public PimentoResult(Object result)
Creates a new instance

Parameters:
result - the result value, usually the return value from the service invocation
Method Detail

readExternal

public void readExternal(DataInput input)
Description copied from interface: Externalizable
Restores the content of this object from the DataInput instance. Values must be read in the same sequence as they were written on the client side.

Specified by:
readExternal in interface Externalizable
Parameters:
input - the AMF3 data to read from

writeExternal

public void writeExternal(DataOutput output)
Description copied from interface: Externalizable
Saves the content of this object to the DataOutput instance.

Specified by:
writeExternal in interface Externalizable
Parameters:
output - the output to write to

toString

public String toString()
Overrides:
toString in class Object