public class DefaultWebSubjectContext extends org.apache.shiro.subject.support.DefaultSubjectContext implements WebSubjectContext
WebSubjectContext implementation that provides for additional storage and retrieval of
a ServletRequest and ServletResponse.| Constructor and Description |
|---|
DefaultWebSubjectContext() |
DefaultWebSubjectContext(WebSubjectContext context) |
| 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. |
String |
resolveHost() |
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, resolvePrincipals, resolveSecurityManager, resolveSession, setAuthenticated, setAuthenticationInfo, setAuthenticationToken, setHost, setPrincipals, setSecurityManager, setSession, setSessionCreationEnabled, setSessionId, setSubjectclear, containsKey, containsValue, entrySet, get, getTypedValue, isEmpty, keySet, nullSafePut, put, putAll, remove, size, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthenticationInfo, getAuthenticationToken, getHost, getPrincipals, getSecurityManager, getSession, getSessionId, getSubject, isAuthenticated, isSessionCreationEnabled, resolveAuthenticated, 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, valuespublic DefaultWebSubjectContext()
public DefaultWebSubjectContext(WebSubjectContext context)
public String resolveHost()
resolveHost in interface org.apache.shiro.subject.SubjectContextresolveHost in class org.apache.shiro.subject.support.DefaultSubjectContextpublic javax.servlet.ServletRequest getServletRequest()
WebSubjectContextServletRequest received by the servlet container triggering the creation of the
Subject instance.getServletRequest in interface WebSubjectContextgetServletRequest in interface RequestPairSourceServletRequest received by the servlet container triggering the creation of the
Subject instance.public void setServletRequest(javax.servlet.ServletRequest request)
WebSubjectContextServletRequest received by the servlet container triggering the creation of the
Subject instance.setServletRequest in interface WebSubjectContextrequest - the ServletRequest received by the servlet container triggering the creation of the
Subject instance.public javax.servlet.ServletRequest resolveServletRequest()
resolveServletRequest in interface WebSubjectContextpublic javax.servlet.ServletResponse getServletResponse()
WebSubjectContextServletResponse corresponding to the associated servletRequest.getServletResponse in interface WebSubjectContextgetServletResponse in interface RequestPairSourceServletResponse corresponding to the associated
servletRequest.public void setServletResponse(javax.servlet.ServletResponse response)
WebSubjectContextServletResponse corresponding to the associated servletRequest.setServletResponse in interface WebSubjectContextresponse - The paired ServletResponse corresponding to the associated
servletRequest.public javax.servlet.ServletResponse resolveServletResponse()
resolveServletResponse in interface WebSubjectContextCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.