Package com.avoka.fc.core.servlet
Class FormNameFilter
- java.lang.Object
-
- com.avoka.fc.core.servlet.FormNameFilter
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
EXCLUDED_EXTS
The excluded resource extensions.static String[]
EXCLUDED_PATHS
The excluded path names.
-
Constructor Summary
Constructors Constructor Description FormNameFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
Called by the web container to indicate to a filter that it is being taken out of service.void
doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain)
Monitor the url path.void
init(FilterConfig filterConfig)
Called by the web container to indicate to a filter that it is being placed into service.
-
-
-
Method Detail
-
init
public void init(FilterConfig filterConfig) throws ServletException
Called by the web container to indicate to a filter that it is being placed into service.- Specified by:
init
in interfaceFilter
- Parameters:
filterConfig
- the filter config- Throws:
ServletException
- if an error occurs during initiation.- See Also:
Filter.init(FilterConfig)
-
destroy
public void destroy()
Called by the web container to indicate to a filter that it is being taken out of service.- Specified by:
destroy
in interfaceFilter
- See Also:
Filter.destroy()
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException
Monitor the url path. If it is a valid friendly url format, it will redirect the form to render.- Specified by:
doFilter
in interfaceFilter
- Parameters:
request
- the servlet requestresponse
- the servlet responsefilterChain
- the filter chain- Throws:
IOException
- if an I/O error occursServletException
- if a servlet error occurs- See Also:
Filter.doFilter(ServletRequest, ServletResponse, FilterChain)
-
-