-
- All Implemented Interfaces:
public final class WsCloseContext extends WsContext
-
-
Field Summary
Fields Modifier and Type Field Description public final Session
session
-
Constructor Summary
Constructors Constructor Description WsCloseContext(String sessionId, Session session, Integer statusCode, String reason)
-
Method Summary
Modifier and Type Method Description final Integer
status()
The int status for why connection was closed final WsCloseStatus
closeStatus()
The enum status for why connection was closed final String
reason()
The reason for the close -
Methods inherited from class io.javalin.websocket.WsContext
attribute, attribute, attributeMap, closeSession, closeSession, closeSession, closeSession, closeSession, cookie, cookieMap, disableAutomaticPings, enableAutomaticPings, enableAutomaticPings, enableAutomaticPings, equals, hashCode, header, headerAsClass, headerMap, host, matchedPath, pathParam, pathParamAsClass, pathParamAsClass, pathParamMap, queryParam, queryParamAsClass, queryParamAsClass, queryParamMap, queryParams, queryString, send, send, send, sendAsClass, sendAsClass, sendPing, sendPing, sessionAttribute, sessionAttributeMap, sessionId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
closeStatus
final WsCloseStatus closeStatus()
The enum status for why connection was closed
-
-
-
-