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.terminal.TerminalExceptionFilter
                          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 redirection handling filters.

Version:
$Id: RedirectionExceptionFilter.java,v 1.8 2009/09/28 15:08:27 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
RedirectionExceptionFilter(int code, Cookie... cs)
          Constucts a new local redirection.
RedirectionExceptionFilter(int code, String location, Cookie... cs)
          Constucts a new redirection.
RedirectionExceptionFilter(String template, int code, String location, Cookie... cs)
          Constucts a new redirection with a template.
 
Method Summary
protected  void commitMessage(ServletRequest request, ServletResponse response, FilterChain chain)
          Commits a message.
 
Methods inherited from class org.norther.tammi.spray.engine.DefaultTemplateExceptionFilter
addDefaultTemplate, getDefaultTemplate, getDefaultTemplate, getErrorTemplate, setDefaultTemplate, setErrorTemplate
 
Methods inherited from class org.norther.tammi.spray.filter.DefaultExceptionFilter
commitMessage, destroy, doFilter, getMBeanServer, getObjectName, getStatusCode, init, isRegistered, postmanaged, premanaged, unmanaged
 
Methods inherited from class org.norther.tammi.core.base.LogException
equals, getArgument, getLevel, getLocalizedMessage, getLocalizedMessage, getMessageLog, getTime, hashCode, 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, finalize, getClass, 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(int code,
                                  Cookie... cs)
Constucts a new local redirection.

Parameters:
code - the redirection code.
cs - the redirection cookies.

RedirectionExceptionFilter

public RedirectionExceptionFilter(int code,
                                  String location,
                                  Cookie... cs)
Constucts a new redirection.

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

RedirectionExceptionFilter

public RedirectionExceptionFilter(String template,
                                  int code,
                                  String location,
                                  Cookie... cs)
Constucts a new redirection with a template.

Parameters:
template - the actual template.
code - the redirection code.
location - the new location.
cs - the redirection cookies.
Method Detail

commitMessage

protected void commitMessage(ServletRequest request,
                             ServletResponse response,
                             FilterChain chain)
                      throws IOException
Description copied from class: DefaultExceptionFilter
Commits a message.

Overrides:
commitMessage in class DefaultTemplateExceptionFilter
Parameters:
request - the request.
response - the response.
chain - the filter chain.
Throws:
IOException - on I/O errors.


Copyright © 2004 The Norther Organization. All rights reserved.