public abstract class AbstractAmbientDataServletFilter extends Object implements javax.servlet.Filter
To use the ambient data framework in a web application,
you have to configure this filter class in the web.xml
deployment
descriptor, as in the following example:
<?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <filter> <description>Servlet filter for the ambient data framework.</description> <filter-name>Ambient Data Framework</filter-name> <filter-class>com.tridion.ambientdata.web.AmbientDataServletFilter</filter-class> </filter> <filter-mapping> <filter-name>Ambient Data Framework</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> </filter-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
Constructor and Description |
---|
AbstractAmbientDataServletFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp,
javax.servlet.FilterChain chain) |
protected abstract RequestValidator |
getRequestValidator() |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected abstract void |
initializeEngine() |
protected boolean |
isRequestPathExcluded(String requestURL) |
protected abstract ClaimStore |
processEndEvents(ClaimStore claimStore) |
protected abstract ClaimStore |
processStartEvents(ClaimStore claimStore,
boolean sessionIsNew) |
void |
setADFService(boolean adfServiceValue) |
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
protected boolean isRequestPathExcluded(String requestURL)
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
protected abstract void initializeEngine() throws AmbientDataException
AmbientDataException
protected abstract ClaimStore processStartEvents(ClaimStore claimStore, boolean sessionIsNew) throws AmbientDataException
AmbientDataException
protected abstract ClaimStore processEndEvents(ClaimStore claimStore) throws AmbientDataException
AmbientDataException
protected abstract RequestValidator getRequestValidator() throws TridionReflectionException
TridionReflectionException
public void setADFService(boolean adfServiceValue)
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries