Interface NuxeoExceptionHandler
-
- All Known Implementing Classes:
DefaultNuxeoExceptionHandler,SecurityExceptionHandler,ShibbolethSecurityExceptionHandler
public interface NuxeoExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_HANDLER_MARKER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetLoginURL(javax.servlet.http.HttpServletRequest request)Gets the URL to redirect to when a login is needed for an Anonymous user.booleanhandleAnonymousException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Handles the Security Error when the user is anonymous.voidhandleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t)voidsetParameters(NuxeoExceptionHandlerParameters parameters)
-
-
-
Field Detail
-
EXCEPTION_HANDLER_MARKER
static final String EXCEPTION_HANDLER_MARKER
- See Also:
- Constant Field Values
-
-
Method Detail
-
handleException
void handleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t) throws IOException, javax.servlet.ServletException- Throws:
IOExceptionjavax.servlet.ServletException
-
setParameters
void setParameters(NuxeoExceptionHandlerParameters parameters)
-
handleAnonymousException
boolean handleAnonymousException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletExceptionHandles the Security Error when the user is anonymous.- Returns:
trueif the Security Error is handled so that the calling method won't fallback on the default handler,falseotherwise.- Throws:
IOExceptionjavax.servlet.ServletException- Since:
- 8.3
-
getLoginURL
String getLoginURL(javax.servlet.http.HttpServletRequest request)
Gets the URL to redirect to when a login is needed for an Anonymous user.- Since:
- 8.3
-
-