Class ModifiedLBHttpSolrClient

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Serializable, java.lang.AutoCloseable

    public class ModifiedLBHttpSolrClient
    extends org.apache.solr.client.solrj.impl.LBHttpSolrClient
    This class overrides and somewhat changes the behavior of the SolrJ LBHttpSolrServer class. This is so it instantiates our modified HttpSolrServer class, so that multipart forms work.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.solr.client.solrj.impl.LBHttpSolrClient

        org.apache.solr.client.solrj.impl.LBHttpSolrClient.Builder, org.apache.solr.client.solrj.impl.LBHttpSolrClient.Req, org.apache.solr.client.solrj.impl.LBHttpSolrClient.Rsp
      • Nested classes/interfaces inherited from class org.apache.solr.client.solrj.impl.LBSolrClient

        org.apache.solr.client.solrj.impl.LBSolrClient.ServerWrapper
    • Field Summary

      • Fields inherited from class org.apache.solr.client.solrj.impl.LBSolrClient

        queryParams, requestWriter
    • Constructor Summary

      Constructors 
      Constructor Description
      ModifiedLBHttpSolrClient​(boolean allowCompression, java.lang.String... solrServerUrls)  
      ModifiedLBHttpSolrClient​(org.apache.http.client.HttpClient httpClient, boolean allowCompression, java.lang.String... solrServerUrl)
      The provided httpClient should use a multi-threaded connection manager
      ModifiedLBHttpSolrClient​(org.apache.http.client.HttpClient httpClient, org.apache.solr.client.solrj.ResponseParser parser, boolean allowCompression, java.lang.String... solrServerUrl)
      The provided httpClient should use a multi-threaded connection manager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.apache.solr.client.solrj.impl.HttpSolrClient makeSolrClient​(java.lang.String server)  
      • Methods inherited from class org.apache.solr.client.solrj.impl.LBHttpSolrClient

        close, getClient, getHttpClient, removeSolrServer, request, setConnectionTimeout, setSoTimeout
      • Methods inherited from class org.apache.solr.client.solrj.impl.LBSolrClient

        addQueryParams, addSolrServer, createServerWrapper, doRequest, getParser, getQueryParams, getRequestWriter, normalize, pickServer, request, request, request, setAliveCheckInterval, setParser, setQueryParams, setRequestWriter, updateAliveList
      • Methods inherited from class org.apache.solr.client.solrj.SolrClient

        add, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getBinder, getById, getById, getById, getById, getById, getById, getById, getById, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
      • Methods inherited from class java.lang.Object

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

      • ModifiedLBHttpSolrClient

        public ModifiedLBHttpSolrClient​(boolean allowCompression,
                                        java.lang.String... solrServerUrls)
                                 throws java.net.MalformedURLException
        Throws:
        java.net.MalformedURLException
      • ModifiedLBHttpSolrClient

        public ModifiedLBHttpSolrClient​(org.apache.http.client.HttpClient httpClient,
                                        boolean allowCompression,
                                        java.lang.String... solrServerUrl)
                                 throws java.net.MalformedURLException
        The provided httpClient should use a multi-threaded connection manager
        Throws:
        java.net.MalformedURLException
      • ModifiedLBHttpSolrClient

        public ModifiedLBHttpSolrClient​(org.apache.http.client.HttpClient httpClient,
                                        org.apache.solr.client.solrj.ResponseParser parser,
                                        boolean allowCompression,
                                        java.lang.String... solrServerUrl)
                                 throws java.net.MalformedURLException
        The provided httpClient should use a multi-threaded connection manager
        Throws:
        java.net.MalformedURLException
    • Method Detail

      • makeSolrClient

        protected org.apache.solr.client.solrj.impl.HttpSolrClient makeSolrClient​(java.lang.String server)
        Overrides:
        makeSolrClient in class org.apache.solr.client.solrj.impl.LBHttpSolrClient