Java javax.websocket Session fields, constructors, methods, implement or subclass

Example usage for Java javax.websocket Session fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.websocket Session.

The text is from its open source code.

Constructor

Method

voidaddMessageHandler(MessageHandler handler)
Registers a MessageHandler for incoming messages.
voidclose()
Close the connection to the remote end point using the code javax.websocket.CloseReason.CloseCodes#NORMAL_CLOSURE and an empty reason phrase.
voidclose(CloseReason closeReason)
Close the connection to the remote end point using the specified code and reason phrase.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
RemoteEndpoint.AsyncgetAsyncRemote()
RemoteEndpoint.BasicgetBasicRemote()
StringgetId()
Provides a unique identifier for the session.
SetgetOpenSessions()
Obtain the set of open sessions associated with the same local endpoint as this session.
MapgetPathParameters()
StringgetQueryString()
Map>getRequestParameterMap()
URIgetRequestURI()
PrincipalgetUserPrincipal()
MapgetUserProperties()
booleanisOpen()
voidremoveMessageHandler(MessageHandler listener)
voidsetMaxBinaryMessageBufferSize(int max)
Set the current maximum buffer size for binary messages.
voidsetMaxIdleTimeout(long timeout)
Set the idle timeout for this session.
voidsetMaxTextMessageBufferSize(int max)
Set the maximum buffer size for text messages.