Class JsrSession
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.websocket.common.WebSocketSession
-
- org.eclipse.jetty.websocket.jsr356.JsrSession
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Session,org.eclipse.jetty.io.Connection.Listener,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.LifeCycle,org.eclipse.jetty.websocket.api.extensions.IncomingFrames,org.eclipse.jetty.websocket.api.Session,org.eclipse.jetty.websocket.common.io.IOState.ConnectionStateListener,org.eclipse.jetty.websocket.common.RemoteEndpointFactory,org.eclipse.jetty.websocket.common.scopes.WebSocketSessionScope,Configurable
public class JsrSession extends org.eclipse.jetty.websocket.common.WebSocketSession implements Session, Configurable
Session for the JSR.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.websocket.common.WebSocketSession
org.eclipse.jetty.websocket.common.WebSocketSession.DisconnectCallback, org.eclipse.jetty.websocket.common.WebSocketSession.Listener, org.eclipse.jetty.websocket.common.WebSocketSession.OnCloseLocalCallback
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
-
Constructor Summary
Constructors Constructor Description JsrSession(ClientContainer container, String id, URI requestURI, org.eclipse.jetty.websocket.common.events.EventDriver websocket, org.eclipse.jetty.websocket.common.LogicalConnection connection)
-
Method Summary
-
Methods inherited from class org.eclipse.jetty.websocket.common.WebSocketSession
abort, close, close, close, disconnect, dispatch, doStart, doStop, dump, equals, getBufferPool, getClassLoader, getConnection, getContainerScope, getExtensionFactory, getIdleTimeout, getIncomingHandler, getLocalAddress, getOutgoingHandler, getPolicy, getProtocolVersion, getRemote, getRemoteAddress, getRequestURI, getUpgradeRequest, getUpgradeResponse, getWebSocketSession, hashCode, incomingError, incomingFrame, isOpen, isSecure, newRemoteEndpoint, notifyClose, notifyError, onClosed, onConnectionStateChange, onOpened, open, setExtensionFactory, setFuture, setIdleTimeout, setOutgoingHandler, setPolicy, setUpgradeRequest, setUpgradeResponse, suspend, toString
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.websocket.Session
close, getProtocolVersion, getRequestURI, isOpen, isSecure
-
-
-
-
Constructor Detail
-
JsrSession
public JsrSession(ClientContainer container, String id, URI requestURI, org.eclipse.jetty.websocket.common.events.EventDriver websocket, org.eclipse.jetty.websocket.common.LogicalConnection connection)
-
-
Method Detail
-
addMessageHandler
public void addMessageHandler(MessageHandler handler) throws IllegalStateException
- Specified by:
addMessageHandlerin interfaceSession- Throws:
IllegalStateException
-
close
public void close(CloseReason closeReason) throws IOException
- Specified by:
closein interfaceSession- Throws:
IOException
-
getAsyncRemote
public RemoteEndpoint.Async getAsyncRemote()
- Specified by:
getAsyncRemotein interfaceSession
-
getBasicRemote
public RemoteEndpoint.Basic getBasicRemote()
- Specified by:
getBasicRemotein interfaceSession
-
getContainer
public WebSocketContainer getContainer()
- Specified by:
getContainerin interfaceSession
-
getDecoderFactory
public DecoderFactory getDecoderFactory()
-
getEncoderFactory
public EncoderFactory getEncoderFactory()
-
getEndpointConfig
public EndpointConfig getEndpointConfig()
-
getEndpointMetadata
public EndpointMetadata getEndpointMetadata()
-
getMaxBinaryMessageBufferSize
public int getMaxBinaryMessageBufferSize()
- Specified by:
getMaxBinaryMessageBufferSizein interfaceSession
-
getMaxIdleTimeout
public long getMaxIdleTimeout()
- Specified by:
getMaxIdleTimeoutin interfaceSession
-
getMaxTextMessageBufferSize
public int getMaxTextMessageBufferSize()
- Specified by:
getMaxTextMessageBufferSizein interfaceSession
-
getMessageHandlerFactory
public MessageHandlerFactory getMessageHandlerFactory()
-
getMessageHandlers
public Set<MessageHandler> getMessageHandlers()
- Specified by:
getMessageHandlersin interfaceSession
-
getMessageHandlerWrapper
public MessageHandlerWrapper getMessageHandlerWrapper(MessageType type)
-
getNegotiatedExtensions
public List<Extension> getNegotiatedExtensions()
- Specified by:
getNegotiatedExtensionsin interfaceSession
-
getNegotiatedSubprotocol
public String getNegotiatedSubprotocol()
- Specified by:
getNegotiatedSubprotocolin interfaceSession
-
getOpenSessions
public Set<Session> getOpenSessions()
- Specified by:
getOpenSessionsin interfaceSession
-
getPathParameters
public Map<String,String> getPathParameters()
- Specified by:
getPathParametersin interfaceSession
-
getQueryString
public String getQueryString()
- Specified by:
getQueryStringin interfaceSession
-
getRequestParameterMap
public Map<String,List<String>> getRequestParameterMap()
- Specified by:
getRequestParameterMapin interfaceSession
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfaceSession
-
getUserProperties
public Map<String,Object> getUserProperties()
- Specified by:
getUserPropertiesin interfaceSession
-
init
public void init(EndpointConfig config)
- Specified by:
initin interfaceConfigurable
-
removeMessageHandler
public void removeMessageHandler(MessageHandler handler)
- Specified by:
removeMessageHandlerin interfaceSession
-
setMaxBinaryMessageBufferSize
public void setMaxBinaryMessageBufferSize(int length)
- Specified by:
setMaxBinaryMessageBufferSizein interfaceSession
-
setMaxIdleTimeout
public void setMaxIdleTimeout(long milliseconds)
- Specified by:
setMaxIdleTimeoutin interfaceSession
-
setMaxTextMessageBufferSize
public void setMaxTextMessageBufferSize(int length)
- Specified by:
setMaxTextMessageBufferSizein interfaceSession
-
getBatchMode
public org.eclipse.jetty.websocket.api.BatchMode getBatchMode()
- Overrides:
getBatchModein classorg.eclipse.jetty.websocket.common.WebSocketSession
-
-