org.openmdx.security.auth.servlet.simple
Class InsecureExceptionHandler

java.lang.Object
  extended by org.openmdx.security.auth.servlet.spi.AbstractHandler
      extended by org.openmdx.security.auth.servlet.simple.InsecureExceptionHandler
All Implemented Interfaces:
ServletConfig, HttpExceptionHandler, HttpHandler

public class InsecureExceptionHandler
extends AbstractHandler
implements HttpExceptionHandler

This HttpExceptionHandler implementation displays the whole exception stack, which is not a good idea for a production environment!


Constructor Summary
InsecureExceptionHandler()
          Constructor
 
Method Summary
protected  String getTitle()
          Retrieve the title.
 boolean handle(HttpServletRequest request, HttpServletResponse response, LoginException exception, int attempt)
          Propagate te given exception
protected  void init()
          A convenience method which can be overridden so that there's no need to call super.init(config).
protected  void startBody(Writer html)
          Write the BODY's start tag.
protected  void startHead(Writer html)
          Write the HEAD's start tag including its META element.
 
Methods inherited from class org.openmdx.security.auth.servlet.spi.AbstractHandler
debugDefault, destroy, endBody, endDocument, endHead, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameter, getInitParameterNames, getServletContext, getServletName, init, isDebug, log, log, startDocument, writeEncoded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openmdx.security.auth.servlet.cci.HttpHandler
destroy, init
 

Constructor Detail

InsecureExceptionHandler

public InsecureExceptionHandler()
Constructor

Method Detail

getTitle

protected final String getTitle()
Retrieve the title.

Returns:
the title's value

handle

public boolean handle(HttpServletRequest request,
                      HttpServletResponse response,
                      LoginException exception,
                      int attempt)
               throws IOException
Description copied from interface: HttpExceptionHandler
Propagate te given exception

Specified by:
handle in interface HttpExceptionHandler
attempt - the number of times login has been started or re-started on the assoicated LoginContext, or -1 if unknown
Returns:
true if the authentication sequence should be terminated, false if it should be re-started with the same LoginContext.
Throws:
IOException

init

protected void init()
             throws ServletException
Description copied from class: AbstractHandler
A convenience method which can be overridden so that there's no need to call super.init(config).

Instead of overriding init(ServletConfig), simply override this method and it will be called by AbstractHandler.init(ServletConfig).

Overrides:
init in class AbstractHandler
Throws:
ServletException

startHead

protected void startHead(Writer html)
                  throws IOException
Description copied from class: AbstractHandler
Write the HEAD's start tag including its META element.

Overrides:
startHead in class AbstractHandler
Throws:
IOException

startBody

protected void startBody(Writer html)
                  throws IOException
Description copied from class: AbstractHandler
Write the BODY's start tag.

Overrides:
startBody in class AbstractHandler
Throws:
IOException


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.