Package com.exedio.cope.misc
Class CopeFilter
- java.lang.Object
-
- com.exedio.cope.misc.CopeFilter
-
- All Implemented Interfaces:
Filter
public final class CopeFilter extends Object implements Filter
A filter for starting/closing cope transactions. In order to use it, you have to deploy the filter in yourweb.xml
, providing the name of the cope model via an init-parameter. Typically, yourweb.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 Constructor Description CopeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
void
init(FilterConfig config)
-
-
-
Method Detail
-
init
public void init(FilterConfig config)
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
- Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
-