Class AbstractSolrAdminHTTPClient
java.lang.Object
org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient
- Direct Known Subclasses:
SOLRAdminClient
HTTP Client providing GET invocations to SOLR. These invocations are used for the SOLR CoreAdmin API and for the SOLR Backup API.
- Since:
- 6.2
- Author:
- aborroy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.json.JSONObjectgetOperation(org.apache.commons.httpclient.HttpClient httpClient, String url) Executes an action or a command in SOLR using REST API
-
Constructor Details
-
AbstractSolrAdminHTTPClient
public AbstractSolrAdminHTTPClient()
-
-
Method Details
-
getOperation
protected org.json.JSONObject getOperation(org.apache.commons.httpclient.HttpClient httpClient, String url) throws UnsupportedEncodingException Executes an action or a command in SOLR using REST API- Parameters:
httpClient- HTTP Client to be used for the invocationurl- Complete URL of SOLR REST API Endpoint- Returns:
- A JSON Object including SOLR response
- Throws:
UnsupportedEncodingException
-