org.slim3.struts.filter
Class RoutingFilter

java.lang.Object
  extended by org.slim3.struts.filter.RoutingFilter
All Implemented Interfaces:
Filter

public class RoutingFilter
extends Object
implements Filter

A filter for routing.

Since:
3.0
Author:
higa

Constructor Summary
RoutingFilter()
           
 
Method Summary
static String assembleActionPath(String path)
          Assembles action path
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig config)
          The suffix of action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoutingFilter

public RoutingFilter()
Method Detail

assembleActionPath

public static String assembleActionPath(String path)
Assembles action path

Parameters:
path - the path
Returns:
action path

init

public void init(FilterConfig config)
          throws ServletException
The suffix of action.

Specified by:
init in interface Filter
Throws:
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.