public class JsrSession extends WebSocketSession implements Session, Configurable
AbstractLifeCycle.AbstractLifeCycleListener
Container.InheritedListener, Container.Listener
LifeCycle.Listener
Constructor and Description |
---|
JsrSession(URI requestURI,
EventDriver websocket,
LogicalConnection connection,
ClientContainer container,
String id,
SessionListener... sessionListeners) |
close, close, close, disconnect, dispatch, dump, equals, getBufferPool, getClassLoader, getConnection, getExtensionFactory, getIdleTimeout, getIncomingHandler, getLocalAddress, getOutgoingHandler, getPolicy, getProtocolVersion, getRemote, getRemoteAddress, getRequestURI, getUpgradeRequest, getUpgradeResponse, hashCode, incomingError, incomingFrame, isOpen, isSecure, notifyClose, notifyError, onConnectionStateChange, open, setExtensionFactory, setIdleTimeout, setOutgoingHandler, setPolicy, setUpgradeRequest, setUpgradeResponse, suspend, toString
addBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
close, getProtocolVersion, getRequestURI, isOpen, isSecure
public JsrSession(URI requestURI, EventDriver websocket, LogicalConnection connection, ClientContainer container, String id, SessionListener... sessionListeners)
public void addMessageHandler(MessageHandler handler) throws IllegalStateException
IllegalStateException
public void close(CloseReason closeReason) throws IOException
IOException
public RemoteEndpoint.Async getAsyncRemote()
public RemoteEndpoint.Basic getBasicRemote()
public WebSocketContainer getContainer()
public DecoderFactory getDecoderFactory()
public EncoderFactory getEncoderFactory()
public EndpointConfig getEndpointConfig()
public EndpointMetadata getEndpointMetadata()
public String getId()
public int getMaxBinaryMessageBufferSize()
public long getMaxIdleTimeout()
public int getMaxTextMessageBufferSize()
public MessageHandlerFactory getMessageHandlerFactory()
public Set<MessageHandler> getMessageHandlers()
public MessageHandlerWrapper getMessageHandlerWrapper(MessageType type)
public String getNegotiatedSubprotocol()
public String getQueryString()
public Principal getUserPrincipal()
public void init(EndpointConfig config)
init
in interface Configurable
public void removeMessageHandler(MessageHandler handler)
public void setMaxBinaryMessageBufferSize(int length)
public void setMaxIdleTimeout(long milliseconds)
public void setMaxTextMessageBufferSize(int length)
public BatchMode getBatchMode()
getBatchMode
in class WebSocketSession
Copyright © 1995-2015 Webtide. All Rights Reserved.