org.norther.tammi.spray.engine
Class AuthorizationExceptionFilter

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.norther.tammi.core.base.LogException
                  extended by org.norther.tammi.spray.filter.DefaultExceptionFilter
                      extended by org.norther.tammi.spray.engine.DefaultTemplateExceptionFilter
                          extended by org.norther.tammi.spray.engine.AuthorizationExceptionFilter
All Implemented Interfaces:
Serializable, Filter, Manageable, TemplateExceptionFilter, ExceptionFilter, TerminationFilter

public class AuthorizationExceptionFilter
extends DefaultTemplateExceptionFilter

An exception for authorization errors.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.norther.tammi.core.base.LogException
DEFAULT, ERROR, FATAL, INFO, NONE, WARN, WARNING
 
Constructor Summary
AuthorizationExceptionFilter()
          Constructs a new exception.
AuthorizationExceptionFilter(String auth)
          Constructs a new exception with authentication.
AuthorizationExceptionFilter(String template, String auth)
          Constructs a new exception with a template and authentication.
 
Method Summary
protected  void prepareCommit(ServletRequest request, ServletResponse response, FilterChain chain)
          A callback for subclasses to modify the response before committing.
 
Methods inherited from class org.norther.tammi.spray.engine.DefaultTemplateExceptionFilter
addDefaultTemplate, getDefaultTemplate, getDefaultTemplate, getErrorTemplate, getMessage, setDefaultTemplate, setErrorTemplate
 
Methods inherited from class org.norther.tammi.spray.filter.DefaultExceptionFilter
destroy, doFilter, getMBeanServer, getObjectName, getStatusCode, init, isRegistered, postmanaged, premanaged, unmanaged
 
Methods inherited from class org.norther.tammi.core.base.LogException
getArgument, getLevel, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessageLog, getTime, setLevel
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.norther.tammi.spray.filter.ExceptionFilter
getLocalizedMessage, getMessage, getStatusCode
 
Methods inherited from interface javax.servlet.Filter
destroy, doFilter, init
 

Constructor Detail

AuthorizationExceptionFilter

public AuthorizationExceptionFilter()
Constructs a new exception.


AuthorizationExceptionFilter

public AuthorizationExceptionFilter(String auth)
Constructs a new exception with authentication.

Parameters:
auth - the authentication.

AuthorizationExceptionFilter

public AuthorizationExceptionFilter(String template,
                                    String auth)
Constructs a new exception with a template and authentication.

Parameters:
template - the actual template.
auth - the authentication.
Method Detail

prepareCommit

protected void prepareCommit(ServletRequest request,
                             ServletResponse response,
                             FilterChain chain)
Description copied from class: DefaultExceptionFilter
A callback for subclasses to modify the response before committing.

Overrides:
prepareCommit in class DefaultExceptionFilter
Parameters:
request - the request.
response - the response.
chain - the filter chain.


Copyright © 2004 The Norther Organization. All rights reserved.