Class 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  
      • 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
    • 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 initialization
      void destroy()  
      void doFilter​(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
      Do filter
      void init​(javax.servlet.FilterConfig config)  
      • 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
    • Field Detail

      • module

        public static final java.lang.String module
    • Constructor Detail

      • OFBizSolrContextFilter

        public OFBizSolrContextFilter()
    • Method Detail

      • init

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

        public void destroy()
        Specified by:
        destroy in interface javax.servlet.Filter
        Overrides:
        destroy in class org.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 class org.apache.solr.servlet.SolrDispatchFilter
        Returns:
        a CoreContainer to hold this server's cores