public class Session extends Object
Modifier and Type | Field and Description |
---|---|
protected SockJsConnection |
connection |
protected Transport.READY_STATE |
readyState |
protected GenericReceiver |
recv |
Constructor and Description |
---|
Session(String sessionId,
SockJsServer server) |
Modifier and Type | Method and Description |
---|---|
static Session |
bySessionId(String sessionId) |
boolean |
close() |
boolean |
close(int status,
String reason) |
protected void |
decorateConnection(SockJsRequest req) |
void |
didMessage(String payload) |
void |
didTimeout() |
void |
register(SockJsRequest req,
GenericReceiver recv) |
boolean |
send(String payload,
boolean async) |
void |
unregister() |
protected Transport.READY_STATE readyState
protected SockJsConnection connection
protected GenericReceiver recv
public Session(String sessionId, SockJsServer server)
public void register(SockJsRequest req, GenericReceiver recv)
protected void decorateConnection(SockJsRequest req)
public void unregister()
public void didTimeout()
public void didMessage(String payload)
public boolean send(String payload, boolean async)
public boolean close()
public boolean close(int status, String reason)
Copyright © 2015. All rights reserved.