Class TileServlet.PlainInvocationContext
java.lang.Object
com.levigo.jadice.web.server.internal.AbstractInvocationContext
com.levigo.jadice.web.conn.server.TileServlet.PlainInvocationContext
- All Implemented Interfaces:
InvocationContext
,ServletInvocationContext
- Enclosing class:
TileServlet
public static class TileServlet.PlainInvocationContext
extends com.levigo.jadice.web.server.internal.AbstractInvocationContext
implements ServletInvocationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.servlet.http.HttpSession
Returns the associatedHttpSession
if available.Returns a session-id if the Context contains session information.Returns thePrincipal
identifying the user sending the message.Methods inherited from class com.levigo.jadice.web.server.internal.AbstractInvocationContext
create, ensureValid, isValid, setValid
-
Constructor Details
-
PlainInvocationContext
public PlainInvocationContext(jakarta.servlet.http.HttpServletRequest request)
-
-
Method Details
-
getSession
public jakarta.servlet.http.HttpSession getSession()Description copied from interface:ServletInvocationContext
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.- Specified by:
getSession
in interfaceServletInvocationContext
- Returns:
- the associated HttpSession for the current request.
-
getUserPrincipal
Description copied from interface:ServletInvocationContext
Returns thePrincipal
identifying the user sending the message.- Specified by:
getUserPrincipal
in interfaceServletInvocationContext
- Returns:
- the user
Principal
-
getQueryString
- Specified by:
getQueryString
in interfaceServletInvocationContext
-
getClientId
- Specified by:
getClientId
in interfaceInvocationContext
-
getSessionId
Description copied from class:com.levigo.jadice.web.server.internal.AbstractInvocationContext
Returns a session-id if the Context contains session information.- Overrides:
getSessionId
in classcom.levigo.jadice.web.server.internal.AbstractInvocationContext
- Returns:
- session id or null if no session is available
-