com.glines.socketio.server.transport
Class FlashSocketTransport

java.lang.Object
  extended by com.glines.socketio.server.transport.AbstractTransport
      extended by com.glines.socketio.server.transport.WebSocketTransport
          extended by com.glines.socketio.server.transport.FlashSocketTransport
All Implemented Interfaces:
Transport, org.eclipse.jetty.websocket.WebSocketFactory.Acceptor

public class FlashSocketTransport
extends WebSocketTransport


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.glines.socketio.server.Transport
Transport.InboundFactory
 
Field Summary
static String FLASHPOLICY_DOMAIN_KEY
           
static String FLASHPOLICY_PORTS_KEY
           
static String FLASHPOLICY_SERVER_HOST_KEY
           
static String FLASHPOLICY_SERVER_PORT_KEY
           
static String TRANSPORT_NAME
           
 
Fields inherited from class com.glines.socketio.server.transport.WebSocketTransport
CONNECTION_TIMEOUT
 
Constructor Summary
FlashSocketTransport(int bufferSize, int maxIdleTime)
           
 
Method Summary
 void destroy()
           
 String getName()
           
 void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Transport.InboundFactory inboundFactory, SocketIOSession.Factory sessionFactory)
           
 void init(javax.servlet.ServletConfig config)
           
 void startFlashPolicyServer()
          Starts this server, binding to the previously passed SocketAddress.
 
Methods inherited from class com.glines.socketio.server.transport.WebSocketTransport
checkOrigin, doWebSocketConnect, parseProtocols
 
Methods inherited from class com.glines.socketio.server.transport.AbstractTransport
extractSessionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSPORT_NAME

public static final String TRANSPORT_NAME
See Also:
Constant Field Values

FLASHPOLICY_SERVER_HOST_KEY

public static final String FLASHPOLICY_SERVER_HOST_KEY
See Also:
Constant Field Values

FLASHPOLICY_SERVER_PORT_KEY

public static final String FLASHPOLICY_SERVER_PORT_KEY
See Also:
Constant Field Values

FLASHPOLICY_DOMAIN_KEY

public static final String FLASHPOLICY_DOMAIN_KEY
See Also:
Constant Field Values

FLASHPOLICY_PORTS_KEY

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

FlashSocketTransport

public FlashSocketTransport(int bufferSize,
                            int maxIdleTime)
Method Detail

getName

public String getName()
Specified by:
getName in interface Transport
Overrides:
getName in class WebSocketTransport
Returns:
The name of the transport instance.

init

public void init(javax.servlet.ServletConfig config)
Specified by:
init in interface Transport
Overrides:
init in class AbstractTransport

destroy

public void destroy()
Specified by:
destroy in interface Transport
Overrides:
destroy in class AbstractTransport

handle

public void handle(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response,
                   Transport.InboundFactory inboundFactory,
                   SocketIOSession.Factory sessionFactory)
            throws IOException
Specified by:
handle in interface Transport
Overrides:
handle in class WebSocketTransport
Throws:
IOException

startFlashPolicyServer

public void startFlashPolicyServer()
                            throws IOException
Starts this server, binding to the previously passed SocketAddress.

Throws:
IOException


Copyright © 2010-2011. All Rights Reserved.