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
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClickThroughEventFilter
public ClickThroughEventFilter()
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