-
public abstract class WsContext
The WsContext class holds Jetty's Session and provides (convenient) delegate methods. It adds functionality similar to the API found in io.javalin.http.Context. It also adds a send method, which calls RemoteEndpoint.sendString on Session.getRemote
-
-
Method Summary
-
-
Constructor Detail
-
WsContext
WsContext(String sessionId, Session session)
-
-
Method Detail
-
getSessionId
final String getSessionId()
-
matchedPath
final String matchedPath()
-
send
final Future<Void> send(ByteBuffer message)
-
queryString
final String queryString()
-
queryParamMap
final Map<String, List<String>> queryParamMap()
-
queryParams
final List<String> queryParams(String key)
-
queryParam
final String queryParam(String key)
-
queryParamAsClass
final <T extends Any> Validator<T> queryParamAsClass(String key)
-
pathParamMap
final Map<String, String> pathParamMap()
-
pathParamAsClass
final <T extends Any> Validator<T> pathParamAsClass(String key)
-
attributeMap
final Map<String, Object> attributeMap()
-
sessionAttribute
final <T extends Any> T sessionAttribute(String key)
-
sessionAttributeMap
final Map<String, Object> sessionAttributeMap()
-
-
-
-