public class NuxeoSecurityExceptionHandler extends DefaultNuxeoExceptionHandler
If it isn't a security exception, or if the user is not anonymous, this handler ends up using DefaultNuxeoExceptionHandler.
Modifier and Type | Field and Description |
---|---|
protected PluggableAuthenticationService |
service |
parameters
EXCEPTION_HANDLER_MARKER
Constructor and Description |
---|
NuxeoSecurityExceptionHandler() |
Modifier and Type | Method and Description |
---|---|
protected PluggableAuthenticationService |
getAuthenticationService() |
protected boolean |
handleAnonymousException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the Security Error when the user is anonymous.
|
void |
handleException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Throwable t) |
getHandler, getUserMessage, setParameters, startHandlingException, unwrapException
protected PluggableAuthenticationService service
public NuxeoSecurityExceptionHandler()
public void handleException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Throwable t) throws IOException, javax.servlet.ServletException
handleException
in interface NuxeoExceptionHandler
handleException
in class DefaultNuxeoExceptionHandler
IOException
javax.servlet.ServletException
protected boolean handleAnonymousException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
true
if the Security Error is handled so that the calling method won't fallback on the default
handler, false
otherwise.IOException
javax.servlet.ServletException
protected PluggableAuthenticationService getAuthenticationService() throws javax.servlet.ServletException
javax.servlet.ServletException
Copyright © 2016 Nuxeo SA. All rights reserved.