public interface Session
| Modifier and Type | Interface and Description |
|---|---|
static class |
Session.State |
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnects this session
|
int |
getLocalPort()
Returns local port to which client connection is established.
|
String |
getOrigin()
Returns origin header of this session.
|
SocketAddress |
getRemoteAddress()
Returns remote address of the client.
|
String |
getSessionId()
Returns session identifier.
|
Session.State |
getState()
Returns session state (see
Session.State). |
TransportType |
getTransportType()
Returns transport type for this session (e.g.
|
TransportType |
getUpgradedFromTransportType() |
boolean |
isUpgradedSession() |
void |
send(io.netty.buffer.ByteBuf message)
Sends provided message's payload to client.
|
String getSessionId()
String getOrigin()
boolean isUpgradedSession()
TransportType getUpgradedFromTransportType()
TransportType getTransportType()
SocketAddress getRemoteAddress()
Session.State getState()
Session.State).int getLocalPort()
void send(io.netty.buffer.ByteBuf message)
message - message's payload to be sent to clientvoid disconnect()
Copyright © 2012–2016. All rights reserved.