Package com.levigo.jadice.web.server
Interface ServletInvocationContext
- All Superinterfaces:
InvocationContext
- All Known Implementing Classes:
TileServlet.PlainInvocationContext
,TransportInvocationContext
An
InvocationContext
specifically for cases when a jakarta.websocket
implementation is used.-
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpSession
Returns the associatedHttpSession
if available.Returns thePrincipal
identifying the user sending the message.Methods inherited from interface com.levigo.jadice.web.server.InvocationContext
getClientId
-
Method Details
-
getSession
Returns the associatedHttpSession
if available.This method must be called within the
ContextualFactory.create(com.levigo.jadice.web.server.InvocationContext)
method. Later calls result in an IllegalStateException.- Returns:
- the associated HttpSession for the current request.
- Throws:
IllegalStateException
-
getUserPrincipal
Principal getUserPrincipal()Returns thePrincipal
identifying the user sending the message.- Returns:
- the user
Principal
-
getQueryString
String getQueryString()
-