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:
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 inherited from class org.apache.solr.servlet.SolrDispatchFilter
abortErrorMessage, cores, httpClient, init, PROPERTIES_ATTRIBUTE, SOLR_DEFAULT_CONFDIR_ATTRIBUTE, SOLR_INSTALL_DIR_ATTRIBUTE, SOLR_LOG_LEVEL, SOLR_LOG_MUTECONSOLE, SOLRHOME_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.solr.core.CoreContainer
createCoreContainer
(Path solrHome, Properties extraProperties) Override this to change CoreContainer initializationvoid
destroy()
Destroyvoid
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) Do filtervoid
init
(FilterConfig config) InitMethods inherited from class org.apache.solr.servlet.SolrDispatchFilter
close, closeOnDestroy, closeShield, closeShield, doFilter, getCores, getHttpSolrCall, loadNodeConfig
-
Constructor Details
-
OFBizSolrContextFilter
public OFBizSolrContextFilter()
-
-
Method Details
-
init
Init- Specified by:
init
in interfaceFilter
- Overrides:
init
in classorg.apache.solr.servlet.SolrDispatchFilter
- Throws:
ServletException
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException Do filter- Specified by:
doFilter
in interfaceFilter
- Overrides:
doFilter
in classorg.apache.solr.servlet.SolrDispatchFilter
- Throws:
IOException
ServletException
-
destroy
public void destroy()Destroy -
createCoreContainer
protected org.apache.solr.core.CoreContainer createCoreContainer(Path solrHome, 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
-