public interface Session
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the current conversation with a normal status code and no reason phrase.
|
void |
close(CloseStatus closeStatus)
Close the current conversation, giving a reason for the closure.
|
long |
getIdleTimeout()
Return the number of milliseconds before this conversation will be closed by the container if it is inactive, ie no messages are either sent or received
in that time.
|
long |
getMaximumMessageSize()
The maximum total length of messages, text or binary, that this Session can handle.
|
String |
getProtocolVersion()
Returns the version of the websocket protocol currently being used.
|
RemoteEndpoint |
getRemote()
Return a reference to the RemoteEndpoint object representing the other end of this conversation.
|
UpgradeRequest |
getUpgradeRequest()
Get the UpgradeRequest used to create this session
|
UpgradeResponse |
getUpgradeResponse()
Get the UpgradeResponse used to create this session
|
boolean |
isOpen()
Return true if and only if the underlying socket is open.
|
boolean |
isSecure()
Return true if and only if the underlying socket is using a secure transport.
|
void |
setIdleTimeout(long ms)
Set the number of milliseconds before this conversation will be closed by the container if it is inactive, ie no messages are either sent or received.
|
void |
setMaximumMessageSize(long length)
Sets the maximum total length of messages, text or binary, that this Session can handle.
|
void close()
throws IOException
IOExceptionvoid close(CloseStatus closeStatus) throws IOException
closeStatus - the reason for the closureIOExceptionlong getIdleTimeout()
long getMaximumMessageSize()
String getProtocolVersion()
RemoteEndpoint getRemote()
UpgradeRequest getUpgradeRequest()
UpgradeResponse getUpgradeResponse()
boolean isOpen()
boolean isSecure()
void setIdleTimeout(long ms)
ms - the number of milliseconds.void setMaximumMessageSize(long length)
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.