org.mmbase.servlet
Class JumpersFilter

Package class diagram package 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 43395 2010-09-17 14:18:08Z 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()
           
 void init(FilterConfig filterConfig)
          Initializes the filter
 void setFilterConfig(FilterConfig fc)
          Deprecated. will be dropped in future versions
 void setInitException(ServletException se)
           
 void setMMBase(MMBase mmb)
           
 
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()
Specified by:
getMMBase in interface MMBaseStarter

setMMBase

public void setMMBase(MMBase mmb)
Specified by:
setMMBase in interface MMBaseStarter

setInitException

public void setInitException(ServletException se)
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 Jumpers 2.0-SNAPSHOT - 2013-05-29T22:17