Package rife.servlet
Class RifeFilter
java.lang.Object
rife.servlet.RifeFilter
- All Implemented Interfaces:
Filter
Servlet filter implementation that initializes a RIFE2 site and handles
servlet requests and responses.
- Since:
- 1.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
destroy()
final void
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) final void
init
(FilterConfig config) final void
init
(HierarchicalProperties properties, Site site) Initialize the filter without aweb.xml
filter config, for example for RIFE2's embedded web servervoid
setupProperties
(HierarchicalProperties properties) This method can be overridden to set up hierarchical properties for your RIFE2 filter implementation without being limited by the servlet API filter parameters only being strings.
-
Field Details
-
RIFE_SITE_CLASS_NAME
-
-
Constructor Details
-
RifeFilter
public RifeFilter()
-
-
Method Details
-
setupProperties
This method can be overridden to set up hierarchical properties for your RIFE2 filter implementation without being limited by the servlet API filter parameters only being strings.By default, this method does nothing.
- Parameters:
properties
- the properties to set up- Since:
- 1.1
-
init
Initialize the filter without aweb.xml
filter config, for example for RIFE2's embedded web server- Parameters:
properties
- the properties to use for the sitesite
- the site to use for the requests- Since:
- 1.1
-
init
- Specified by:
init
in interfaceFilter
- Throws:
ServletException
-
doFilter
public final void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
destroy
public final void destroy()
-