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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.solr.core.CoreContainer
    createCoreContainer(Path solrHome, Properties extraProperties)
    Override this to change CoreContainer initialization
    void
    Destroy
    void
    doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
    Do filter
    void
    Init

    Methods inherited from class org.apache.solr.servlet.SolrDispatchFilter

    close, closeOnDestroy, closeShield, closeShield, doFilter, getCores, getHttpSolrCall, loadNodeConfig

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OFBizSolrContextFilter

      public OFBizSolrContextFilter()
  • Method Details

    • init

      public void init(FilterConfig config) throws ServletException
      Init
      Specified by:
      init in interface Filter
      Overrides:
      init in class org.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 interface Filter
      Overrides:
      doFilter in class org.apache.solr.servlet.SolrDispatchFilter
      Throws:
      IOException
      ServletException
    • destroy

      public void destroy()
      Destroy
      Specified by:
      destroy in interface Filter
      Overrides:
      destroy in class org.apache.solr.servlet.SolrDispatchFilter
    • createCoreContainer

      protected org.apache.solr.core.CoreContainer createCoreContainer(Path solrHome, Properties extraProperties)
      Override this to change CoreContainer initialization
      Overrides:
      createCoreContainer in class org.apache.solr.servlet.SolrDispatchFilter
      Returns:
      a CoreContainer to hold this server's cores