org.granite.client.messaging.channel.amf
Class JMFAMFRemotingChannel

java.lang.Object
  extended by org.granite.client.messaging.channel.AbstractChannel<Transport>
      extended by org.granite.client.messaging.channel.AbstractHTTPChannel
          extended by org.granite.client.messaging.channel.amf.AbstractAMFChannel
              extended by org.granite.client.messaging.channel.amf.AMFRemotingChannel
                  extended by org.granite.client.messaging.channel.amf.JMFAMFRemotingChannel
All Implemented Interfaces:
Runnable, Channel, RemotingChannel, TransportStopListener

public class JMFAMFRemotingChannel
extends AMFRemotingChannel


Field Summary
 
Fields inherited from class org.granite.client.messaging.channel.amf.AMFRemotingChannel
codec, index
 
Fields inherited from class org.granite.client.messaging.channel.AbstractHTTPChannel
authenticated, defaultTimeToLive, maxConcurrentRequests, pinged
 
Fields inherited from class org.granite.client.messaging.channel.AbstractChannel
clientId, credentials, id, transport, transportData, uri
 
Fields inherited from interface org.granite.client.messaging.channel.Channel
BYTEARRAY_BODY_HEADER, RECONNECT_INTERVAL_MS_KEY, RECONNECT_MAX_ATTEMPTS_KEY
 
Constructor Summary
JMFAMFRemotingChannel(Transport transport, Configuration configuration, String id, URI uri, int maxConcurrentRequests)
           
JMFAMFRemotingChannel(Transport transport, String id, URI uri)
           
JMFAMFRemotingChannel(Transport transport, String id, URI uri, int maxConcurrentRequests)
           
 
Method Summary
protected  TransportMessage createTransportMessage(AsyncToken token)
           
protected  ResponseMessage decodeResponse(InputStream is)
           
protected  MessagingCodec<org.granite.messaging.amf.AMF0Message> newMessagingCodec(Configuration configuration)
           
 
Methods inherited from class org.granite.client.messaging.channel.amf.AbstractAMFChannel
convertFromAmf, convertFromAmf, convertToAmf
 
Methods inherited from class org.granite.client.messaging.channel.AbstractHTTPChannel
getMaxConcurrentRequests, getRequest, isAuthenticated, isStarted, logout, onCancelled, onError, onMessage, onStop, run, schedule, send, start, stop
 
Methods inherited from class org.granite.client.messaging.channel.AbstractChannel
getClientId, getCredentials, getId, getTransport, getTransportData, getUri, setCredentials, setTransportData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.granite.client.messaging.channel.Channel
getClientId, getCredentials, getId, getTransport, getTransportData, getUri, isAuthenticated, isStarted, logout, onCancelled, onError, onMessage, send, setCredentials, setTransportData, start, stop
 

Constructor Detail

JMFAMFRemotingChannel

public JMFAMFRemotingChannel(Transport transport,
                             String id,
                             URI uri)

JMFAMFRemotingChannel

public JMFAMFRemotingChannel(Transport transport,
                             String id,
                             URI uri,
                             int maxConcurrentRequests)

JMFAMFRemotingChannel

public JMFAMFRemotingChannel(Transport transport,
                             Configuration configuration,
                             String id,
                             URI uri,
                             int maxConcurrentRequests)
Method Detail

newMessagingCodec

protected MessagingCodec<org.granite.messaging.amf.AMF0Message> newMessagingCodec(Configuration configuration)
Overrides:
newMessagingCodec in class AMFRemotingChannel

createTransportMessage

protected TransportMessage createTransportMessage(AsyncToken token)
                                           throws UnsupportedEncodingException
Overrides:
createTransportMessage in class AMFRemotingChannel
Throws:
UnsupportedEncodingException

decodeResponse

protected ResponseMessage decodeResponse(InputStream is)
                                  throws IOException
Overrides:
decodeResponse in class AMFRemotingChannel
Throws:
IOException