public interface WebSudoManager
matches(String, Class, java.lang.reflect.Method).| 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.
|
boolean isEnabled()
boolean matches(String requestURI, Class<? extends com.opensymphony.xwork.Action> actionClass, Method method)
requestURI - - the requestURI for this action methodactionClass - - the current action classmethod - - the action method that is executedboolean hasValidSession(@Nullable javax.servlet.http.HttpSession session)
session - the current HttpSession. Can be nullHttpSession is a WebSudo session.boolean isWebSudoRequest(@Nullable javax.servlet.http.HttpServletRequest request)
request is a WebSudo request.request - the current HttpServletRequestvoid startSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
HttpSession if necessary.request - the current HttpServletRequestresponse - the current HttpServletResponsevoid markWebSudoRequest(@Nullable javax.servlet.http.HttpServletRequest request)
request as a request for a WebSudo resource.request - the current HttpServletRequestvoid invalidateSession(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
HttpSession.request - the current HttpServletRequestresponse - the current HttpServletResponseCopyright © 2003–2019 Atlassian. All rights reserved.