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

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
All Implemented Interfaces:
Runnable, Channel, RemotingChannel, TransportStopListener

public class AMFRemotingChannel
extends AbstractAMFChannel
implements RemotingChannel

Author:
Franck WOLFF

Field Summary
protected  MessagingCodec<AMF0Message> codec
           
protected  int 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.RemotingChannel
DEFAULT_MAX_CONCURRENT_REQUESTS
 
Fields inherited from interface org.granite.client.messaging.channel.Channel
BYTEARRAY_BODY_HEADER, DEFAULT_TIME_TO_LIVE, RECONNECT_INTERVAL_MS_KEY, RECONNECT_MAX_ATTEMPTS_KEY
 
Constructor Summary
AMFRemotingChannel(Transport transport, Configuration configuration, String id, URI uri, int maxConcurrentRequests)
           
 
Method Summary
protected  TransportMessage createTransportMessage(AsyncToken token)
           
protected  ResponseMessage decodeResponse(InputStream is)
           
 
Methods inherited from class org.granite.client.messaging.channel.amf.AbstractAMFChannel
convertFromAmf, convertFromAmf, convertToAmf
 
Methods inherited from class org.granite.client.messaging.channel.AbstractHTTPChannel
getDefaultTimeToLive, getMaxConcurrentRequests, getRequest, isAuthenticated, isStarted, logout, onCancelled, onError, onMessage, onStop, run, schedule, send, setDefaultTimeToLive, 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, getDefaultTimeToLive, getId, getTransport, getTransportData, getUri, isAuthenticated, isStarted, logout, onCancelled, onError, onMessage, send, setCredentials, setDefaultTimeToLive, setTransportData, start, stop
 

Field Detail

codec

protected final MessagingCodec<AMF0Message> codec

index

protected volatile int index
Constructor Detail

AMFRemotingChannel

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

createTransportMessage

protected TransportMessage createTransportMessage(AsyncToken token)
                                           throws UnsupportedEncodingException
Specified by:
createTransportMessage in class AbstractHTTPChannel
Throws:
UnsupportedEncodingException

decodeResponse

protected ResponseMessage decodeResponse(InputStream is)
                                  throws IOException
Specified by:
decodeResponse in class AbstractHTTPChannel
Throws:
IOException