Package org.apache.shiro.web.subject
Interface WebSubject
- All Superinterfaces:
RequestPairSource,org.apache.shiro.subject.Subject
- All Known Implementing Classes:
WebDelegatingSubject
A
WebSubject represents a Subject instance that was acquired as a result of an incoming
ServletRequest.- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAWebSubject.Builderperforms the same function as aSubject.Builder, but additionally ensures that the Servlet request/response pair that is triggering the Subject instance's creation is retained for use by internal Shiro components as necessary. -
Method Summary
Modifier and TypeMethodDescriptionjavax.servlet.ServletRequestReturns theServletRequestaccessible when the Subject instance was created.javax.servlet.ServletResponseReturns theServletResponseaccessible when the Subject instance was created.Methods inherited from interface org.apache.shiro.subject.Subject
associateWith, associateWith, checkPermission, checkPermission, checkPermissions, checkPermissions, checkRole, checkRoles, checkRoles, execute, execute, getPreviousPrincipals, getPrincipal, getPrincipals, getSession, getSession, hasAllRoles, hasRole, hasRoles, isAuthenticated, isPermitted, isPermitted, isPermitted, isPermitted, isPermittedAll, isPermittedAll, isRemembered, isRunAs, login, logout, releaseRunAs, runAs
-
Method Details
-
getServletRequest
javax.servlet.ServletRequest getServletRequest()Returns theServletRequestaccessible when the Subject instance was created.- Specified by:
getServletRequestin interfaceRequestPairSource- Returns:
- the
ServletRequestaccessible when the Subject instance was created.
-
getServletResponse
javax.servlet.ServletResponse getServletResponse()Returns theServletResponseaccessible when the Subject instance was created.- Specified by:
getServletResponsein interfaceRequestPairSource- Returns:
- the
ServletResponseaccessible when the Subject instance was created.
-