net.ontopia.topicmaps.nav2.taglibs.tolog
Class TologContextFilter

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.taglibs.tolog.TologContextFilter
All Implemented Interfaces:
javax.servlet.Filter

public class TologContextFilter
extends Object
implements javax.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 Summary
protected  String topicmapid
           
protected  String topicmapid_attribute
           
protected  String topicmapid_parameter
           
 
Constructor Summary
TologContextFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig fconfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topicmapid_attribute

protected String topicmapid_attribute

topicmapid_parameter

protected String topicmapid_parameter

topicmapid

protected String topicmapid
Constructor Detail

TologContextFilter

public TologContextFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig fconfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
IOException
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2000-2012 Ontopia.