Class SolrDispatchFilter

  • All Implemented Interfaces:
    javax.servlet.Filter, PathExcluder

    public class SolrDispatchFilter
    extends Object
    implements PathExcluder
    This filter looks at the incoming URL maps them to handlers defined in solrconfig.xml
    Since:
    solr 1.2
    • Constructor Detail

      • SolrDispatchFilter

        public SolrDispatchFilter()
    • Method Detail

      • getHttpClient

        public org.apache.http.client.HttpClient getHttpClient()
      • init

        public void init​(javax.servlet.FilterConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Filter
        Throws:
        javax.servlet.ServletException
      • getCores

        public CoreContainer getCores()
                               throws javax.servlet.UnavailableException
        Throws:
        javax.servlet.UnavailableException
      • 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
      • doFilter

        public void doFilter​(javax.servlet.ServletRequest _request,
                             javax.servlet.ServletResponse _response,
                             javax.servlet.FilterChain chain,
                             boolean retry)
                      throws IOException,
                             javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException
      • getHttpSolrCall

        protected HttpSolrCall getHttpSolrCall​(javax.servlet.http.HttpServletRequest request,
                                               javax.servlet.http.HttpServletResponse response,
                                               boolean retry)
        Allow a subclass to modify the HttpSolrCall. In particular, subclasses may want to add attributes to the request and send errors differently