Class TologContextFilter

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

public class TologContextFilter extends Object implements 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

      protected String topicmapid_attribute
    • topicmapid_parameter

      protected String topicmapid_parameter
    • topicmapid

      protected String topicmapid
  • Constructor Details

    • TologContextFilter

      public TologContextFilter()
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig fconfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.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:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

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