public interface WebSubjectContext extends SubjectContext, RequestPairSource
WebSubjectContext is a SubjectContext that additionally provides for type-safe
methods to set and retrieve a ServletRequest and ServletResponse.| Modifier and Type | Method and Description |
|---|---|
javax.servlet.ServletRequest |
getServletRequest()
Returns the
ServletRequest received by the servlet container triggering the creation of the
Subject instance. |
javax.servlet.ServletResponse |
getServletResponse()
The paired
ServletResponse corresponding to the associated servletRequest. |
javax.servlet.ServletRequest |
resolveServletRequest() |
javax.servlet.ServletResponse |
resolveServletResponse() |
void |
setServletRequest(javax.servlet.ServletRequest request)
Sets the
ServletRequest received by the servlet container triggering the creation of the
Subject instance. |
void |
setServletResponse(javax.servlet.ServletResponse response)
Sets the paired
ServletResponse corresponding to the associated servletRequest. |
getAuthenticationInfo, getAuthenticationToken, getHost, getPrincipals, getSecurityManager, getSession, getSessionId, getSubject, isAuthenticated, isSessionCreationEnabled, resolveAuthenticated, resolveHost, resolvePrincipals, resolveSecurityManager, resolveSession, setAuthenticated, setAuthenticationInfo, setAuthenticationToken, setHost, setPrincipals, setSecurityManager, setSession, setSessionCreationEnabled, setSessionId, setSubjectclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesjavax.servlet.ServletRequest getServletRequest()
ServletRequest received by the servlet container triggering the creation of the
Subject instance.getServletRequest in interface RequestPairSourceServletRequest received by the servlet container triggering the creation of the
Subject instance.void setServletRequest(javax.servlet.ServletRequest request)
ServletRequest received by the servlet container triggering the creation of the
Subject instance.request - the ServletRequest received by the servlet container triggering the creation of the
Subject instance.javax.servlet.ServletRequest resolveServletRequest()
javax.servlet.ServletResponse getServletResponse()
ServletResponse corresponding to the associated servletRequest.getServletResponse in interface RequestPairSourceServletResponse corresponding to the associated
servletRequest.void setServletResponse(javax.servlet.ServletResponse response)
ServletResponse corresponding to the associated servletRequest.response - The paired ServletResponse corresponding to the associated
servletRequest.javax.servlet.ServletResponse resolveServletResponse()
Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.