Java org.springframework.web.socket WebSocketSession fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.socket WebSocketSession fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.socket WebSocketSession.

The text is from its open source code.

Implementation

org.springframework.web.socket.WebSocketSession has the following implementations.
Click this link to see all its implementation.

Method

voidclose(CloseStatus status)
Close the WebSocket connection with the given close status.
voidclose()
Close the WebSocket connection with status 1000, i.e.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
StringgetAcceptedProtocol()
Return the negotiated sub-protocol.
MapgetAttributes()
Return the map with attributes associated with the WebSocket session.
ClassgetClass()
Returns the runtime class of this Object .
HttpHeadersgetHandshakeHeaders()
Return the headers used in the handshake request (never null ).
StringgetId()
Return a unique session identifier.
InetSocketAddressgetLocalAddress()
Return the address on which the request was received.
PrincipalgetPrincipal()
Return a java.security.Principal instance containing the name of the authenticated user.
InetSocketAddressgetRemoteAddress()
Return the address of the remote client.
intgetTextMessageSizeLimit()
Get the configured maximum size for an incoming text message.
URIgetUri()
Return the URI used to open the WebSocket connection.
booleanisOpen()
Return whether the connection is still open.
voidsendMessage(WebSocketMessage message)
Send a WebSocket message: either TextMessage or BinaryMessage .
voidsetTextMessageSizeLimit(int messageSizeLimit)
Configure the maximum size for an incoming text message.
StringtoString()
Returns a string representation of the object.