Package org.apache.ofbiz.solr.webapp
Class OFBizSolrContextFilter
- java.lang.Object
-
- org.apache.solr.servlet.SolrDispatchFilter
-
- org.apache.ofbiz.solr.webapp.OFBizSolrContextFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class OFBizSolrContextFilter extends org.apache.solr.servlet.SolrDispatchFilter
OFBizSolrContextFilter - Restricts access to solr urls.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.servlet.SolrDispatchFilter
org.apache.solr.servlet.SolrDispatchFilter.Action, org.apache.solr.servlet.SolrDispatchFilter.ClosedServletInputStream, org.apache.solr.servlet.SolrDispatchFilter.ClosedServletOutputStream, org.apache.solr.servlet.SolrDispatchFilter.HttpSolrCallFactory
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Constructor Summary
Constructors Constructor Description OFBizSolrContextFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.solr.core.CoreContainer
createCoreContainer(java.nio.file.Path solrHome, java.util.Properties extraProperties)
Override this to change CoreContainer initializationvoid
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
Do filtervoid
init(javax.servlet.FilterConfig config)
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Overrides:
init
in classorg.apache.solr.servlet.SolrDispatchFilter
- Throws:
javax.servlet.ServletException
- See Also:
Filter.init(javax.servlet.FilterConfig)
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
Do filter- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Overrides:
doFilter
in classorg.apache.solr.servlet.SolrDispatchFilter
- Throws:
java.io.IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
- Overrides:
destroy
in classorg.apache.solr.servlet.SolrDispatchFilter
- See Also:
Filter.destroy()
-
createCoreContainer
protected org.apache.solr.core.CoreContainer createCoreContainer(java.nio.file.Path solrHome, java.util.Properties extraProperties)
Override this to change CoreContainer initialization- Overrides:
createCoreContainer
in classorg.apache.solr.servlet.SolrDispatchFilter
- Returns:
- a CoreContainer to hold this server's cores
-
-