|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.cafesoft.core.message.DefaultMessageTranslator
|
+--com.cafesoft.core.message.EndPointRegistrationMessageTranslator
Encodes and decodes EndPointRegistration messages. These messages are used as part of the "EndPoint Regisration Protocol", which identifies and local MessageSender or MessageReceiver with a remote host.
This translator will either decode packets and construct an EndPointRegistrationBody object, or will encode a EndPointRegisrationBody object into packets.
| Field Summary |
| Fields inherited from class com.cafesoft.core.message.DefaultMessageTranslator |
logger, objectPool, support |
| Constructor Summary | |
EndPointRegistrationMessageTranslator()
Creates an EndPointRegistrationMessageTranslator |
|
| Method Summary | |
int |
getMessageType()
Override the Message type to return a system-defined type. |
protected void |
onDecode(MessageInputStream input,
Message message)
Template method for decoding a message input stream into a message. |
protected void |
onEncode(Message message,
MessageOutputStream output)
Template method for encoding a message into a message output stream. |
| Methods inherited from class com.cafesoft.core.message.DefaultMessageTranslator |
addMessageTranslatorListener, decode, encode, initialize, removeMessageTranslatorListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EndPointRegistrationMessageTranslator()
| Method Detail |
protected void onDecode(MessageInputStream input,
Message message)
throws MessageTranslatorException
onDecode in class DefaultMessageTranslatorinput - the encoded MessageInputStream from which to
readmessage - the Message into which to decode
MessageTranslatorException
protected void onEncode(Message message,
MessageOutputStream output)
throws MessageTranslatorException
onEncode in class DefaultMessageTranslatormessage - the Message from which to encodeoutput - the encoded MessageOutputStream into which to
write
MessageTranslatorExceptionpublic int getMessageType()
NOTE: The message type is not the content-type of the message it is the type of message being sent. Therefore, type refers to Application messages, Error messages, and Connection messages.
getMessageType in class DefaultMessageTranslator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||