Package org.apache.shiro.web.subject
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
AWebSubjectContextis aSubjectContextthat additionally provides for type-safe methods to set and retrieve aServletRequestandServletResponse.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.servlet.ServletRequestgetServletRequest()Returns theServletRequestreceived by the servlet container triggering the creation of theSubjectinstance.javax.servlet.ServletResponsegetServletResponse()The pairedServletResponsecorresponding to the associatedservletRequest.javax.servlet.ServletRequestresolveServletRequest()javax.servlet.ServletResponseresolveServletResponse()voidsetServletRequest(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, values
-
Methods 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 Detail
-
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
void setServletRequest(javax.servlet.ServletRequest request)
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
void setServletResponse(javax.servlet.ServletResponse response)
Sets the pairedServletResponsecorresponding to the associatedservletRequest.- Parameters:
response- The pairedServletResponsecorresponding to the associatedservletRequest.
-
resolveServletResponse
javax.servlet.ServletResponse resolveServletResponse()
-
-