public class DefaultWebSudoManager extends Object implements WebSudoManager
WebSudoManager
for further documentation.Constructor and Description |
---|
DefaultWebSudoManager(SettingsManager settingsManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasValidSession(javax.servlet.http.HttpSession session)
Check if this is a valid WebSudo session.
|
void |
invalidateSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Invalidate the current WebSudo session.
|
boolean |
isEnabled() |
boolean |
isWebSudoRequest(javax.servlet.http.HttpServletRequest request)
Checks if the
request is a WebSudo request. |
void |
markWebSudoRequest(javax.servlet.http.HttpServletRequest request)
Marks the
request as a request for a WebSudo resource. |
boolean |
matches(String requestURI,
Class<? extends com.opensymphony.xwork.Action> actionClass,
Method method)
Check if the action method should be WebSudo protected for the given requestURI.
|
void |
startSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Start a new WebSudo session.
|
public DefaultWebSudoManager(SettingsManager settingsManager)
public boolean isEnabled()
isEnabled
in interface WebSudoManager
public boolean matches(String requestURI, Class<? extends com.opensymphony.xwork.Action> actionClass, Method method)
WebSudoManager
matches
in interface WebSudoManager
requestURI
- - the requestURI for this action methodactionClass
- - the current action classmethod
- - the action method that is executedpublic boolean hasValidSession(javax.servlet.http.HttpSession session)
WebSudoManager
hasValidSession
in interface WebSudoManager
session
- the current HttpSession
. Can be nullHttpSession
is a WebSudo session.public void startSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
WebSudoManager
HttpSession
if necessary.startSession
in interface WebSudoManager
request
- the current HttpServletRequest
response
- the current HttpServletResponse
public void markWebSudoRequest(javax.servlet.http.HttpServletRequest request)
WebSudoManager
request
as a request for a WebSudo resource.markWebSudoRequest
in interface WebSudoManager
request
- the current HttpServletRequest
public boolean isWebSudoRequest(javax.servlet.http.HttpServletRequest request)
WebSudoManager
request
is a WebSudo request.isWebSudoRequest
in interface WebSudoManager
request
- the current HttpServletRequest
public void invalidateSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
WebSudoManager
HttpSession
.invalidateSession
in interface WebSudoManager
request
- the current HttpServletRequest
response
- the current HttpServletResponse
Copyright © 2003–2016 Atlassian. All rights reserved.