org.atmosphere.socketio.transport
Class AbstractTransport

java.lang.Object
  extended by org.atmosphere.socketio.transport.AbstractTransport
All Implemented Interfaces:
Transport
Direct Known Subclasses:
WebSocketTransport, XHRTransport

public abstract class AbstractTransport
extends Object
implements Transport

Author:
Sebastien Dionne : sebastien.dionne@gmail.com

Field Summary
static String POST_MESSAGE_RECEIVED
           
static String SESSION_KEY
           
 
Constructor Summary
AbstractTransport()
           
 
Method Summary
protected  String decodePostData(String contentType, String data)
           
 void destroy()
           
protected  String extractSessionId(org.atmosphere.cpr.AtmosphereRequest request)
           
static String extractString(Reader reader)
          Used to extract POST body from the request
protected  boolean isDisconnectRequest(org.atmosphere.cpr.AtmosphereRequest request)
          Check if there is a disconnect message in the POST Body
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.atmosphere.socketio.transport.Transport
getName, handle
 

Field Detail

SESSION_KEY

public static final String SESSION_KEY

POST_MESSAGE_RECEIVED

public static final String POST_MESSAGE_RECEIVED
See Also:
Constant Field Values
Constructor Detail

AbstractTransport

public AbstractTransport()
Method Detail

extractSessionId

protected String extractSessionId(org.atmosphere.cpr.AtmosphereRequest request)

extractString

public static String extractString(Reader reader)
Used to extract POST body from the request

Parameters:
reader -
Returns:

destroy

public void destroy()
Specified by:
destroy in interface Transport

decodePostData

protected String decodePostData(String contentType,
                                String data)

isDisconnectRequest

protected boolean isDisconnectRequest(org.atmosphere.cpr.AtmosphereRequest request)
Check if there is a disconnect message in the POST Body

Parameters:
request -
Returns:


Copyright © 2012. All Rights Reserved.