Class 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