Interface WebSubjectContext
- All Superinterfaces:
Map<String,,Object> RequestPairSource,org.apache.shiro.subject.SubjectContext
- All Known Implementing Classes:
DefaultWebSubjectContext
public interface WebSubjectContext
extends org.apache.shiro.subject.SubjectContext, RequestPairSource
A
WebSubjectContext is a SubjectContext that additionally provides for type-safe
methods to set and retrieve a ServletRequest and ServletResponse.- Since:
- 1.0
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.ServletRequestReturns theServletRequestreceived by the servlet container triggering the creation of theSubjectinstance.javax.servlet.ServletResponseThe pairedServletResponsecorresponding to the associatedservletRequest.javax.servlet.ServletRequestjavax.servlet.ServletResponsevoidsetServletRequest(javax.servlet.ServletRequest request) Sets theServletRequestreceived by the servlet container triggering the creation of theSubjectinstance.voidsetServletResponse(javax.servlet.ServletResponse response) Sets the pairedServletResponsecorresponding to the associatedservletRequest.Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface org.apache.shiro.subject.SubjectContext
getAuthenticationInfo, getAuthenticationToken, getHost, getPrincipals, getSecurityManager, getSession, getSessionId, getSubject, isAuthenticated, isSessionCreationEnabled, resolveAuthenticated, resolveHost, resolvePrincipals, resolveSecurityManager, resolveSession, setAuthenticated, setAuthenticationInfo, setAuthenticationToken, setHost, setPrincipals, setSecurityManager, setSession, setSessionCreationEnabled, setSessionId, setSubject
-
Method Details
-
getServletRequest
javax.servlet.ServletRequest getServletRequest()Returns theServletRequestreceived by the servlet container triggering the creation of theSubjectinstance.- Specified by:
getServletRequestin interfaceRequestPairSource- Returns:
- the
ServletRequestreceived by the servlet container triggering the creation of theSubjectinstance.
-
setServletRequest
Sets theServletRequestreceived by the servlet container triggering the creation of theSubjectinstance.- Parameters:
request- theServletRequestreceived by the servlet container triggering the creation of theSubjectinstance.
-
resolveServletRequest
javax.servlet.ServletRequest resolveServletRequest() -
getServletResponse
javax.servlet.ServletResponse getServletResponse()The pairedServletResponsecorresponding to the associatedservletRequest.- Specified by:
getServletResponsein interfaceRequestPairSource- Returns:
- the paired
ServletResponsecorresponding to the associatedservletRequest.
-
setServletResponse
Sets the pairedServletResponsecorresponding to the associatedservletRequest.- Parameters:
response- The pairedServletResponsecorresponding to the associatedservletRequest.
-
resolveServletResponse
javax.servlet.ServletResponse resolveServletResponse()
-