org.mmbase.servlet
Class JumpersFilter

java.lang.Object
  extended by org.mmbase.servlet.JumpersFilter
All Implemented Interfaces:
Filter, MMBaseStarter

public class JumpersFilter
extends Object
implements Filter, MMBaseStarter

Redirects request based on information supplied by the jumpers builder.

Version:
$Id: JumpersFilter.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Jaco de Groot
Application:
Tools, Jumpers

Constructor Summary
JumpersFilter()
           
 
Method Summary
 void destroy()
          destroys the filter
 void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
          Filters the request: tries to find a jumper and redirects to this url when found, otherwise the request will be handled somewhere else in the filterchain.
 FilterConfig getFilterConfig()
          Deprecated. will be dropped in future versions
 MMBase getMMBase()
          Returns the currently set MMBase object.
 void init(FilterConfig filterConfig)
          Initializes the filter
 void setFilterConfig(FilterConfig fc)
          Deprecated. will be dropped in future versions
 void setInitException(ServletException se)
          If something went wrong (an exception occured), the caller may is informed by a call to this method.
 void setMMBase(MMBase mmb)
          Set MMBase object after initializion, in the caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JumpersFilter

public JumpersFilter()
Method Detail

setFilterConfig

public void setFilterConfig(FilterConfig fc)
Deprecated. will be dropped in future versions

Supported for use with older versions of the servlet api, such as used by Orion 1.5.2 This method simply thows an exception when called.


getFilterConfig

public FilterConfig getFilterConfig()
Deprecated. will be dropped in future versions

Supported for use with older versions of the servlet api, such as used by Orion 1.5.2 This method simply thows an exception when called.


getMMBase

public MMBase getMMBase()
Description copied from interface: MMBaseStarter
Returns the currently set MMBase object.

Specified by:
getMMBase in interface MMBaseStarter
Returns:
the MMBase instance or null.

setMMBase

public void setMMBase(MMBase mmb)
Description copied from interface: MMBaseStarter
Set MMBase object after initializion, in the caller.

Specified by:
setMMBase in interface MMBaseStarter

setInitException

public void setInitException(ServletException se)
Description copied from interface: MMBaseStarter
If something went wrong (an exception occured), the caller may is informed by a call to this method. (It may ignore it).

Specified by:
setInitException in interface MMBaseStarter

init

public void init(FilterConfig filterConfig)
          throws ServletException
Initializes the filter

Specified by:
init in interface Filter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest servletRequest,
                     ServletResponse servletResponse,
                     FilterChain filterChain)
              throws IOException,
                     ServletException
Filters the request: tries to find a jumper and redirects to this url when found, otherwise the request will be handled somewhere else in the filterchain.

Specified by:
doFilter in interface Filter
Parameters:
servletRequest - The ServletRequest.
servletResponse - The ServletResponse.
filterChain - The FilterChain.
Throws:
IOException
ServletException

destroy

public void destroy()
destroys the filter

Specified by:
destroy in interface Filter


MMBase 2.0-SNAPSHOT - null