public class NoopWebSudoManager extends Object implements WebSudoManager
WebSudoManager that can be used
if the host application does not support WebSudo.| Constructor and Description |
|---|
NoopWebSudoManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canExecuteRequest(javax.servlet.http.HttpServletRequest request)
Check whether this request can be executed.
|
void |
enforceWebSudoProtection(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Ensure that the current request is protected by a WebSudo session.
|
void |
willExecuteWebSudoRequest(javax.servlet.http.HttpServletRequest request)
Mark the current request as a request for a WebSudo protected resource.
|
public boolean canExecuteRequest(javax.servlet.http.HttpServletRequest request)
WebSudoManagerCalling this method has no side effects.
canExecuteRequest in interface WebSudoManagerrequest - the current HttpServletRequesttrue if this request is protected by a WebSudo session or WebSudo is disabled, false otherwise.public void enforceWebSudoProtection(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
WebSudoManager
This is a no op if this request is already
protected by a WebSudo session (i.e. WebSudoManager.canExecuteRequest(javax.servlet.http.HttpServletRequest) would return true).
enforceWebSudoProtection in interface WebSudoManagerrequest - the current HttpServletRequestresponse - the current HttpServletResponsepublic void willExecuteWebSudoRequest(javax.servlet.http.HttpServletRequest request)
throws WebSudoSessionException
WebSudoManager
Throws a WebSudoSessionException if the current request is not protected by WebSudo.
This notifies the host application that the request is a request for a WebSudp protected resource.
willExecuteWebSudoRequest in interface WebSudoManagerrequest - the current HttpServletRequestWebSudoSessionException - if the current request is not protected by WebSudo.Copyright © 2019 Atlassian. All rights reserved.