com.exedio.cope.util
Class CopeFilter
java.lang.Object
com.exedio.cope.util.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 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopeFilter
public CopeFilter()
init
public void init(FilterConfig config)
throws ServletException
- Specified by:
init in interface Filter
- Throws:
ServletException
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- Specified by:
destroy in interface Filter
Copyright © 2004-2008 exedio Gesellschaft für Softwareentwicklung mbH. All rights reserved.
svn.12752 build.5319 20090312135114