net.ontopia.topicmaps.nav2.utils
Class ThreadLocalStoreServletFilter
java.lang.Object
net.ontopia.topicmaps.nav2.utils.ThreadLocalStoreServletFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class ThreadLocalStoreServletFilter
- extends java.lang.Object
- implements javax.servlet.Filter
INTERNAL: Servlet filter that creates a new topic map store for
each request thread. The topic map store is stored in a thread
local.
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.
- Since:
- 3.4
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
|
static TopicMapStoreIF |
getStore()
|
void |
init(javax.servlet.FilterConfig filterConfig)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThreadLocalStoreServletFilter
public ThreadLocalStoreServletFilter()
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
getStore
public static TopicMapStoreIF getStore()
Copyright © 2000-2009 Ontopia.