org.granite.client.messaging.transport
Class DefaultTransportMessage<M>
java.lang.Object
org.granite.client.messaging.transport.DefaultTransportMessage<M>
- All Implemented Interfaces:
- TransportMessage
public class DefaultTransportMessage<M>
- extends Object
- implements TransportMessage
- Author:
- Franck WOLFF
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultTransportMessage
public DefaultTransportMessage(String id,
boolean connect,
String clientId,
String sessionId,
M message,
MessagingCodec<M> codec)
getClientType
public MessagingCodec.ClientType getClientType()
- Specified by:
getClientType in interface TransportMessage
getId
public String getId()
- Specified by:
getId in interface TransportMessage
isConnect
public boolean isConnect()
- Specified by:
isConnect in interface TransportMessage
getClientId
public String getClientId()
- Specified by:
getClientId in interface TransportMessage
getSessionId
public String getSessionId()
- Specified by:
getSessionId in interface TransportMessage
getContentType
public String getContentType()
- Specified by:
getContentType in interface TransportMessage
encode
public void encode(OutputStream os)
throws IOException
- Specified by:
encode in interface TransportMessage
- Throws:
IOException