public static class HttpSolrClient.Builder extends Object
HttpSolrClient
instances from provided configuration.Constructor and Description |
---|
Builder() |
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
HttpSolrClient s use compression by default. |
HttpSolrClient |
build()
Create a
HttpSolrClient based on provided configuration. |
HttpSolrClient.Builder |
withBaseSolrUrl(String baseSolrUrl) |
HttpSolrClient.Builder |
withDelegationToken(String delegationToken)
Deprecated.
|
HttpSolrClient.Builder |
withHttpClient(org.apache.http.client.HttpClient httpClient)
Provides a
HttpClient for the builder to use when creating clients. |
HttpSolrClient.Builder |
withKerberosDelegationToken(String delegationToken)
Use a delegation token for authenticating via the KerberosPlugin
|
HttpSolrClient.Builder |
withResponseParser(ResponseParser responseParser)
Provides a
ResponseParser for created clients to use when handling requests. |
public Builder()
public Builder(String baseSolrUrl)
baseSolrUrl
- the base URL of the Solr server that will be targeted by any created clients.public HttpSolrClient.Builder withBaseSolrUrl(String baseSolrUrl)
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)
HttpSolrClient
s use compression by default.public HttpSolrClient.Builder withKerberosDelegationToken(String delegationToken)
@Deprecated public HttpSolrClient.Builder withDelegationToken(String delegationToken)
public HttpSolrClient build()
HttpSolrClient
based on provided configuration.Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.