|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface InternalWebSudoManager
Manages the WebSudo related access to Request, Response and Session objects and provides a method to determine
if an XWork action should be treated as a WebSudo resource (#matches(Class
.
Method Summary | |
---|---|
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(Class<? extends webwork.action.Action> actionClass)
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. |
Method Detail |
---|
boolean isEnabled()
boolean matches(Class<? extends webwork.action.Action> actionClass)
actionClass
- - the current action class
boolean hasValidSession(@Nullable javax.servlet.http.HttpSession session)
session
- the current HttpSession
. Can be null
HttpSession
is a WebSudo session.boolean isWebSudoRequest(@Nullable javax.servlet.http.HttpServletRequest request)
request
is a WebSudo request.
request
- the current HttpServletRequest
void startSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
HttpSession
if necessary.
request
- the current HttpServletRequest
response
- the current HttpServletResponse
void markWebSudoRequest(@Nullable javax.servlet.http.HttpServletRequest request)
request
as a request for a WebSudo resource.
request
- the current HttpServletRequest
void invalidateSession(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
HttpSession
.
request
- the current HttpServletRequest
response
- the current HttpServletResponse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |