public class HttpSolrServerFactory extends Object
HttpSolrServer 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 |
HttpSolrServerFactory() |
|
HttpSolrServerFactory(org.apache.solr.client.solrj.SolrServer solrServer) |
|
HttpSolrServerFactory(org.apache.solr.client.solrj.SolrServer solrServer,
String core) |
|
HttpSolrServerFactory(org.apache.solr.client.solrj.SolrServer solrServer,
String core,
org.apache.http.auth.Credentials credentials,
String authPolicy) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendCoreToBaseUrl(String core,
org.apache.solr.client.solrj.SolrServer solrServer) |
void |
destroy() |
protected void |
destroy(org.apache.solr.client.solrj.SolrServer server) |
List<String> |
getCores()
Get list of cores
|
org.apache.solr.client.solrj.SolrServer |
getSolrServer()
Get base
SolrServer instance |
org.apache.solr.client.solrj.SolrServer |
getSolrServer(String core)
returns the reference solrServer
|
protected boolean |
isHttpSolrServer(org.apache.solr.client.solrj.SolrServer solrServer) |
void |
setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer) |
protected HttpSolrServerFactory()
public HttpSolrServerFactory(org.apache.solr.client.solrj.SolrServer solrServer)
public HttpSolrServerFactory(org.apache.solr.client.solrj.SolrServer solrServer,
String core)
public List<String> getCores()
SolrServerFactorypublic org.apache.solr.client.solrj.SolrServer getSolrServer(String core)
SolrServerFactory.getSolrServer()protected void appendCoreToBaseUrl(String core, org.apache.solr.client.solrj.SolrServer solrServer)
protected final boolean isHttpSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
public org.apache.solr.client.solrj.SolrServer getSolrServer()
SolrServerFactorySolrServer instancegetSolrServer in interface SolrServerFactorypublic void setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
public void destroy()
destroy in interface DisposableBeanprotected void destroy(org.apache.solr.client.solrj.SolrServer server)
server - Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.