Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.web.common.exceptionhandling
Class NuxeoSecurityExceptionHandler

java.lang.Object
  extended by org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler
      extended by org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoSecurityExceptionHandler
All Implemented Interfaces:
NuxeoExceptionHandler

public class NuxeoSecurityExceptionHandler
extends DefaultNuxeoExceptionHandler

This exception handler adds security error flag in the URL parameters to ensure the anonymous user will get appropriate error message when being redirected to login page.

If it isn't a security exception, or if the user is not anonymous, this handler ends up using DefaultNuxeoExceptionHandler.

Author:
ldoguin

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionHandler
EXCEPTION_HANDLER_MARKER
 
Constructor Summary
NuxeoSecurityExceptionHandler()
           
 
Method Summary
 void handleException(HttpServletRequest request, HttpServletResponse response, Throwable t)
           
 
Methods inherited from class org.nuxeo.ecm.platform.web.common.exceptionhandling.DefaultNuxeoExceptionHandler
setParameters, unwrapException
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NuxeoSecurityExceptionHandler

public NuxeoSecurityExceptionHandler()
Method Detail

handleException

public void handleException(HttpServletRequest request,
                            HttpServletResponse response,
                            Throwable t)
                     throws IOException,
                            ServletException
Specified by:
handleException in interface NuxeoExceptionHandler
Overrides:
handleException in class DefaultNuxeoExceptionHandler
Throws:
IOException
ServletException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.