|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface specifies all the methods for encoding outgoing messages and decoding incoming messages, as well as the method that handles decoded incoming messages.
| Method Summary | |
DataObject |
decodeData(java.io.Reader message)
Method to decode the incoming data |
java.lang.String |
encodeData(DataObject data)
Method to encode the incoming data |
void |
handleIndependentReply(IndependentCommunication independentCommunication)
This method is called after the independentUserRequest has been called. |
DataObject |
runMethod(java.lang.String methodType,
DataObject data)
This method handles both the system-defined, callbacks and user-defined RPCs. |
| Method Detail |
public DataObject decodeData(java.io.Reader message)
throws DecodeException,
InvalidDecoderException
message - Message to be decoded
DecodeException - thrown when the given
data can not be decoded successfully
InvalidDecoderException - thrown when the
decoder can not be run successfully
public java.lang.String encodeData(DataObject data)
throws EncodeException,
InvalidEncoderException
data - Data to be encoded
EncodeException - thrown when the given
data can not be encoded successfully
InvalidEncoderException - thrown when the
encoder can not be run successfully
public DataObject runMethod(java.lang.String methodType,
DataObject data)
throws InvalidMethodException,
MethodException
methodType - Name of method to rundata - DataObject containing data for the method call
InvalidMethodException - thrown if specified RPC couldn't be found
MethodException - thrown if specified RPC had an errorpublic void handleIndependentReply(IndependentCommunication independentCommunication)
ClientsPool,
Client,
context.arch.util.RequestObject,
DataObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||