net.ontopia.topicmaps.nav2.utils
Class RequestAttributeStoreServletFilter

java.lang.Object
  extended by net.ontopia.topicmaps.nav2.utils.RequestAttributeStoreServletFilter
All Implemented Interfaces:
javax.servlet.Filter

public class RequestAttributeStoreServletFilter
extends java.lang.Object
implements javax.servlet.Filter

INTERNAL: Servlet filter that creates a new topic map store for each request.

The filter can be configured using the following configuration parameters:

topicMapId - The id of the topic map to create a store for. Mandatory.
repositoryId - The id of the topic map repository. The default is to use the default repository.
readOnly - A boolean specifying if the store should be readonly. The default is true.
requestAttribute - The name of the request attribute under which the store should be placed. The default can be retrieved through the getDefaultRequestAttribute. Override the default only when neccessary.

Since:
3.4

Constructor Summary
RequestAttributeStoreServletFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
static java.lang.String getDefaultRequestAttribute()
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestAttributeStoreServletFilter

public RequestAttributeStoreServletFilter()
Method Detail

init

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

destroy

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

doFilter

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

getDefaultRequestAttribute

public static java.lang.String getDefaultRequestAttribute()


Copyright © 2000-2009 Ontopia.