org.granite.client.messaging.transport
Class DefaultTransportMessage<M>

java.lang.Object
  extended by org.granite.client.messaging.transport.DefaultTransportMessage<M>
All Implemented Interfaces:
TransportMessage

public class DefaultTransportMessage<M>
extends Object
implements TransportMessage

Author:
Franck WOLFF

Constructor Summary
DefaultTransportMessage(String id, boolean connect, String clientId, String sessionId, M message, MessagingCodec<M> codec)
           
 
Method Summary
 void encode(OutputStream os)
           
 String getClientId()
           
 MessagingCodec.ClientType getClientType()
           
 String getContentType()
           
 String getId()
           
 String getSessionId()
           
 boolean isConnect()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTransportMessage

public DefaultTransportMessage(String id,
                               boolean connect,
                               String clientId,
                               String sessionId,
                               M message,
                               MessagingCodec<M> codec)
Method Detail

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