# com.bea.p13n.tracking.clickthrough
ClickThroughEventFilter Class

public class ClickThroughEventFilter
extends `Object`
implements `Filter`

Filters can interact with external resources. In this case, we associate the filter with the WebflowServlet (see web.xml) so that, each time the Webflow servlet is called, this filter is invoked to generate a ClickThroughEvent for behavior tracking.

Hierarchy
  `Object`
  `ClickThroughEventFilter`

All Implemented Interfaces
  `Filter`

## Constructor Summary

ClickThroughEventFilter()

## Method Summary

`public void` | `destroy`()
`public void` | `doFilter`(`ServletRequest` request, `ServletResponse` response, `FilterChain` chain) Called when the servlet associated with this filter is invoked.
`public `FilterConfig`` | `getFilterConfig`() Required by Filter interface
`public void` | `init`(`FilterConfig` fc) The init method is called by the container when the filter is instantiated.
`public void` | `setFilterConfig`(`FilterConfig` fc) Required by Filter interface

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.servlet.`Filter``
`destroy, doFilter, init`

## Constructor Detail

### ClickThroughEventFilter

    public ClickThroughEventFilter()

## Method Detail

### destroy() Method

    public void destroy()

### doFilter(ServletRequest, ServletResponse, FilterChain) Method

    public void doFilter(ServletRequest request,
                         ServletResponse response,
                         FilterChain chain)
         throws IOException, ServletException

Called when the servlet associated with this filter is invoked. We fire a click through event, then send it on to the next filter in the chain, if there is one.

#### Exceptions

``IOException``
``ServletException``

### getFilterConfig() Method

    public FilterConfig getFilterConfig()

Required by Filter interface

### init(FilterConfig) Method

    public void init(FilterConfig fc)
         throws ServletException

The init method is called by the container when the filter is instantiated.

#### Exceptions

``ServletException``

### setFilterConfig(FilterConfig) Method

    public void setFilterConfig(FilterConfig fc)

Required by Filter interface