@ManagedObject(value="A Jetty WebSocket Session") public class WebSocketSession extends ContainerLifeCycle implements Session, WebSocketSessionScope, IncomingFrames, Connection.Listener, IOState.ConnectionStateListener
AbstractLifeCycle.AbstractLifeCycleListenerConnection.Listener.AdapterContainer.InheritedListener, Container.ListenerLifeCycle.Listener| Constructor and Description |
|---|
WebSocketSession(WebSocketContainerScope containerScope,
URI requestURI,
EventDriver websocket,
LogicalConnection connection,
SessionListener... sessionListeners) |
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic WebSocketSession(WebSocketContainerScope containerScope, URI requestURI, EventDriver websocket, LogicalConnection connection, SessionListener... sessionListeners)
public void close()
public void close(CloseStatus closeStatus)
public void disconnect()
disconnect in interface Sessionpublic void dispatch(Runnable runnable)
protected void doStart()
throws Exception
doStart in class ContainerLifeCycleExceptionprotected void doStop()
throws Exception
doStop in class ContainerLifeCycleExceptionpublic void dump(Appendable out, String indent) throws IOException
dump in interface Dumpabledump in class ContainerLifeCycleIOExceptionpublic ByteBufferPool getBufferPool()
public ClassLoader getClassLoader()
public LogicalConnection getConnection()
public WebSocketContainerScope getContainerScope()
WebSocketSessionScopeWebSocketContainerScope for this session scope.getContainerScope in interface WebSocketSessionScopepublic ExtensionFactory getExtensionFactory()
public long getIdleTimeout()
getIdleTimeout in interface Session@ManagedAttribute(readonly=true) public IncomingFrames getIncomingHandler()
public InetSocketAddress getLocalAddress()
getLocalAddress in interface Session@ManagedAttribute(readonly=true) public OutgoingFrames getOutgoingHandler()
public WebSocketPolicy getPolicy()
public String getProtocolVersion()
getProtocolVersion in interface Sessionpublic RemoteEndpoint getRemote()
public InetSocketAddress getRemoteAddress()
getRemoteAddress in interface Sessionpublic URI getRequestURI()
public UpgradeRequest getUpgradeRequest()
getUpgradeRequest in interface Sessionpublic UpgradeResponse getUpgradeResponse()
getUpgradeResponse in interface Sessionpublic WebSocketSession getWebSocketSession()
WebSocketSessionScopeWebSocketSession associated with this scope.getWebSocketSession in interface WebSocketSessionScopepublic void incomingError(Throwable t)
incomingError in interface IncomingFramespublic void incomingFrame(Frame frame)
incomingFrame in interface IncomingFramespublic void notifyClose(int statusCode,
String reason)
public void notifyError(Throwable cause)
public void onClosed(Connection connection)
onClosed in interface Connection.Listenerpublic void onOpened(Connection connection)
onOpened in interface Connection.Listenerpublic void onConnectionStateChange(ConnectionState state)
onConnectionStateChange in interface IOState.ConnectionStateListenerpublic void open()
public void setExtensionFactory(ExtensionFactory extensionFactory)
public void setIdleTimeout(long ms)
setIdleTimeout in interface Sessionpublic void setOutgoingHandler(OutgoingFrames outgoing)
public void setPolicy(WebSocketPolicy policy)
public void setUpgradeRequest(UpgradeRequest request)
public void setUpgradeResponse(UpgradeResponse response)
public SuspendToken suspend()
public BatchMode getBatchMode()
Copyright © 1995-2015 Webtide. All Rights Reserved.