org.norther.tammi.spray.engine
Class RedirectionExceptionFilter

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.RedirectionExceptionFilter
All Implemented Interfaces:
Serializable, Filter, Manageable, TemplateExceptionFilter, ExceptionFilter, TerminationFilter

public class RedirectionExceptionFilter
extends DefaultTemplateExceptionFilter

An exception for redirected requests.

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
RedirectionExceptionFilter()
          Constucts a new local redirection.
RedirectionExceptionFilter(Cookie[] cs)
          Constucts a new local redirection with cookies.
RedirectionExceptionFilter(String location)
          Constucts a new redirection.
RedirectionExceptionFilter(String location, Cookie[] cs)
          Constucts a new redirection with cookies.
RedirectionExceptionFilter(String template, String location)
          Constucts a new redirection with a template.
RedirectionExceptionFilter(String template, String location, Cookie[] cs)
          Constucts a new redirection with a template and cookies.
 
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

RedirectionExceptionFilter

public RedirectionExceptionFilter()
Constucts a new local redirection.


RedirectionExceptionFilter

public RedirectionExceptionFilter(Cookie[] cs)
Constucts a new local redirection with cookies.

Parameters:
cs - the redirection cookies.

RedirectionExceptionFilter

public RedirectionExceptionFilter(String location)
Constucts a new redirection.

Parameters:
location - the new location.

RedirectionExceptionFilter

public RedirectionExceptionFilter(String location,
                                  Cookie[] cs)
Constucts a new redirection with cookies.

Parameters:
location - the new location.
cs - the redirection cookies.

RedirectionExceptionFilter

public RedirectionExceptionFilter(String template,
                                  String location)
Constucts a new redirection with a template.

Parameters:
template - the actual template.
location - the new location.

RedirectionExceptionFilter

public RedirectionExceptionFilter(String template,
                                  String location,
                                  Cookie[] cs)
Constucts a new redirection with a template and cookies.

Parameters:
template - the actual template.
location - the new location.
cs - the redirection cookies.
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.