public class HttpSolrClientFactory extends Object
HttpSolrClientFactory replaces HttpSolrServerFactory from version 1.x and configures an
HttpSolrClient to work with the provided core. If provided Credentials eg. (@link
UsernamePasswordCredentials} and AuthPolicy (eg. BASIC, DIGEST,...) will be applied to the underlying HttpClient.| Modifier | Constructor and Description |
|---|---|
protected |
HttpSolrClientFactory() |
|
HttpSolrClientFactory(org.apache.solr.client.solrj.SolrClient solrClient) |
|
HttpSolrClientFactory(org.apache.solr.client.solrj.SolrClient solrClient,
org.apache.http.auth.Credentials credentials,
String authPolicy) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
destroy(org.apache.solr.client.solrj.SolrClient client) |
org.apache.solr.client.solrj.SolrClient |
getSolrClient()
Get base
SolrClient instance |
protected boolean |
isHttpSolrClient(org.apache.solr.client.solrj.SolrClient solrClient) |
void |
setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient) |
protected HttpSolrClientFactory()
public HttpSolrClientFactory(org.apache.solr.client.solrj.SolrClient solrClient)
protected final boolean isHttpSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
public org.apache.solr.client.solrj.SolrClient getSolrClient()
SolrClientFactorySolrClient instancegetSolrClient in interface SolrClientFactorypublic void setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
public void destroy()
destroy in interface DisposableBeanprotected void destroy(org.apache.solr.client.solrj.SolrClient client)
client - Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.