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.HttpSessionReturns the associatedHttpSessionif available.Returns a session-id if the Context contains session information.Returns thePrincipalidentifying 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:ServletInvocationContextReturns the associatedHttpSessionif 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:
getSessionin interfaceServletInvocationContext- Returns:
- the associated HttpSession for the current request.
-
getUserPrincipal
Description copied from interface:ServletInvocationContextReturns thePrincipalidentifying the user sending the message.- Specified by:
getUserPrincipalin interfaceServletInvocationContext- Returns:
- the user
Principal
-
getQueryString
- Specified by:
getQueryStringin interfaceServletInvocationContext
-
getClientId
- Specified by:
getClientIdin interfaceInvocationContext
-
getSessionId
Description copied from class:com.levigo.jadice.web.server.internal.AbstractInvocationContextReturns a session-id if the Context contains session information.- Overrides:
getSessionIdin classcom.levigo.jadice.web.server.internal.AbstractInvocationContext- Returns:
- session id or null if no session is available
-