public static class HttpSolrClient.Builder extends Object
HttpSolrClient instances from provided configuration.| Constructor and Description | 
|---|
| Builder(String baseSolrUrl)Create a Builder object, based on the provided Solr URL. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpSolrClient.Builder | allowCompression(boolean compression)Chooses whether created  HttpSolrClients use compression by default. | 
| HttpSolrClient | build()Create a  HttpSolrClientbased on provided configuration. | 
| HttpSolrClient.Builder | withHttpClient(org.apache.http.client.HttpClient httpClient)Provides a  HttpClientfor the builder to use when creating clients. | 
| HttpSolrClient.Builder | withResponseParser(ResponseParser responseParser)Provides a  ResponseParserfor created clients to use when handling requests. | 
public Builder(String baseSolrUrl)
baseSolrUrl - the base URL of the Solr server that will be targeted by any created clients.public HttpSolrClient.Builder withHttpClient(org.apache.http.client.HttpClient httpClient)
HttpClient for the builder to use when creating clients.public HttpSolrClient.Builder withResponseParser(ResponseParser responseParser)
ResponseParser for created clients to use when handling requests.public HttpSolrClient.Builder allowCompression(boolean compression)
HttpSolrClients use compression by default.public HttpSolrClient build()
HttpSolrClient based on provided configuration.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.