public class HttpSolrServerFactory extends Object implements SolrServerFactory, DisposableBean
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 |
---|---|
void |
destroy() |
String |
getCore()
Get the core the SolrServer instance is bound to
|
org.apache.solr.client.solrj.SolrServer |
getSolrServer()
Get a configured SolrServer instance
|
protected 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 org.apache.solr.client.solrj.SolrServer getSolrServer()
SolrServerFactory
getSolrServer
in interface SolrServerFactory
public String getCore()
SolrServerFactory
getCore
in interface SolrServerFactory
public void destroy()
destroy
in interface DisposableBean
protected void setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.