Class TologContextFilter
java.lang.Object
net.ontopia.topicmaps.nav2.taglibs.tolog.TologContextFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
EXPERIMENTAL: This is a servlet filter that pushes a tolog context
onto the stack. The filter is to be used so that the nested filters
are to have access to the tolog context.
Example web.xml configuration:
<filter-name>TologContextFilter</filter-name> <filter-class>net.ontopia.topicmaps.nav2.taglibs.tolog.TologContextFilter</filter-class> <init-param> <param-name>topicmap</param-name> <param-value>opera.xtm</param-value> </init-param> <init-param> <param-name>reqParam</param-name> <param-value>topicmap</param-value> </init-param> </filter> <filter-mapping> <filter-name>TologContextFilter</filter-name> <url-pattern>/opera/*</url-pattern> </filter-mapping>
- Since:
- 3.0
-
Field Details
-
topicmapid_attribute
-
topicmapid_parameter
-
topicmapid
-
-
Constructor Details
-
TologContextFilter
public TologContextFilter()
-
-
Method Details
-
init
public void init(jakarta.servlet.FilterConfig fconfig) throws jakarta.servlet.ServletException - Specified by:
initin interfacejakarta.servlet.Filter- Throws:
jakarta.servlet.ServletException
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilterin interfacejakarta.servlet.Filter- Throws:
IOExceptionjakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfacejakarta.servlet.Filter
-