public class WsSessionContext extends ImSessionContext
Constructor and Description |
---|
WsSessionContext() |
Modifier and Type | Method and Description |
---|---|
HttpRequest |
getHandshakeRequestPacket() |
HttpResponse |
getHandshakeResponsePacket() |
List<byte[]> |
getLastParts() |
org.tio.monitor.RateLimiterWrap |
getRequestRateLimiter() |
String |
getToken() |
WsRequestPacket |
getWsRequestPacket() |
WsResponsePacket |
getWsResponsPacket() |
boolean |
isHandshaked() |
void |
setHandshaked(boolean isHandshaked) |
void |
setHandshakeRequestPacket(HttpRequest handshakeRequestPacket) |
void |
setHandshakeResponsePacket(HttpResponse handshakeResponsePacket) |
void |
setLastParts(List<byte[]> lastParts) |
void |
setRequestRateLimiter(org.tio.monitor.RateLimiterWrap requestRateLimiter) |
void |
setToken(String token) |
void |
setWsRequestPacket(WsRequestPacket wsRequestPacket) |
void |
setWsResponsPacket(WsResponsePacket wsResponsPacket) |
getClient, getProtocolHandler, setClient, setProtocolHandler
getId, setId
public HttpRequest getHandshakeRequestPacket()
public HttpResponse getHandshakeResponsePacket()
public List<byte[]> getLastParts()
public org.tio.monitor.RateLimiterWrap getRequestRateLimiter()
getRequestRateLimiter
in class ImSessionContext
public String getToken()
getToken
in class ImSessionContext
public boolean isHandshaked()
public void setHandshaked(boolean isHandshaked)
isHandshaked
- the isHandshaked to setpublic void setHandshakeRequestPacket(HttpRequest handshakeRequestPacket)
httpHandshakePacket
- the httpHandshakePacket to setpublic void setHandshakeResponsePacket(HttpResponse handshakeResponsePacket)
handshakeResponsePacket
- the handshakeResponsePacket to setpublic void setLastParts(List<byte[]> lastParts)
lastParts
- the lastPart to setpublic void setRequestRateLimiter(org.tio.monitor.RateLimiterWrap requestRateLimiter)
setRequestRateLimiter
in class ImSessionContext
requestRateLimiter
- the requestRateLimiter to setpublic void setToken(String token)
setToken
in class ImSessionContext
token
- the token to setpublic WsRequestPacket getWsRequestPacket()
public void setWsRequestPacket(WsRequestPacket wsRequestPacket)
public WsResponsePacket getWsResponsPacket()
public void setWsResponsPacket(WsResponsePacket wsResponsPacket)
Copyright © 2018. All rights reserved.