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

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
All Implemented Interfaces:
Runnable, Channel, TransportStopListener
Direct Known Subclasses:
AbstractAMFMessagingChannel, AMFRemotingChannel, JMFAMFRemotingChannel

public abstract class AbstractAMFChannel
extends AbstractHTTPChannel

Author:
Franck WOLFF

Field Summary
 
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, DEFAULT_TIME_TO_LIVE, RECONNECT_INTERVAL_MS_KEY, RECONNECT_MAX_ATTEMPTS_KEY
 
Constructor Summary
AbstractAMFChannel(Transport transport, String id, URI uri, int maxConcurrentRequests)
           
 
Method Summary
protected  AbstractResponseMessage convertFromAmf(AcknowledgeMessage message)
           
protected  TopicMessage convertFromAmf(AsyncMessage message)
           
protected  Message[] convertToAmf(RequestMessage request)
           
 
Methods inherited from class org.granite.client.messaging.channel.AbstractHTTPChannel
createTransportMessage, decodeResponse, 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
 

Constructor Detail

AbstractAMFChannel

public AbstractAMFChannel(Transport transport,
                          String id,
                          URI uri,
                          int maxConcurrentRequests)
Method Detail

convertToAmf

protected Message[] convertToAmf(RequestMessage request)
                          throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

convertFromAmf

protected TopicMessage convertFromAmf(AsyncMessage message)

convertFromAmf

protected AbstractResponseMessage convertFromAmf(AcknowledgeMessage message)