Package com.exedio.cope.misc
Class CopeFilter
java.lang.Object
com.exedio.cope.misc.CopeFilter
- All Implemented Interfaces:
Filter
A filter for starting/closing cope transactions.
In order to use it, you have to deploy the filter in your
web.xml
,
providing the name of the cope model via an init-parameter.
Typically, your web.xml
would contain a snippet like this:
<filter>
<filter-name>CopeFilter</filter-name>
<filter-class>com.exedio.cope.util.CopeFilter</filter-class>
<init-param>
<param-name>model</param-name>
<param-value>com.exedio.demoshop.Main#model
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CopeFilter</filter-name>
<url-pattern>*.do</url-pattern>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
- Author:
- Stephan Frisch, exedio GmbH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) void
init
(FilterConfig config)
-
Constructor Details
-
CopeFilter
public CopeFilter()
-
-
Method Details
-
init
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
destroy
public void destroy()
-