net.ontopia.topicmaps.nav2.utils
Class RequestAttributeStoreServletFilter
java.lang.Object
net.ontopia.topicmaps.nav2.utils.RequestAttributeStoreServletFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class RequestAttributeStoreServletFilter
- extends 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
Field Summary |
protected javax.servlet.FilterConfig |
filterConfig
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filterConfig
protected javax.servlet.FilterConfig filterConfig
RequestAttributeStoreServletFilter
public RequestAttributeStoreServletFilter()
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 IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
getDefaultRequestAttribute
public static String getDefaultRequestAttribute()
getTopicMapId
protected String getTopicMapId(javax.servlet.ServletRequest request)
getRepositoryId
protected String getRepositoryId(javax.servlet.ServletRequest request)
getReadOnly
protected boolean getReadOnly(javax.servlet.ServletRequest request)
getRequestAttribute
protected String getRequestAttribute(javax.servlet.ServletRequest request)
Copyright © 2000-2012 Ontopia.