Class AbstractSolrAdminHTTPClient
- java.lang.Object
-
- org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient
-
- Direct Known Subclasses:
SOLRAdminClient
public abstract class AbstractSolrAdminHTTPClient extends java.lang.ObjectHTTP 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 Constructor Description AbstractSolrAdminHTTPClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.json.JSONObjectgetOperation(org.apache.commons.httpclient.HttpClient httpClient, java.lang.String url)Executes an action or a command in SOLR using REST API
-
-
-
Method Detail
-
getOperation
protected org.json.JSONObject getOperation(org.apache.commons.httpclient.HttpClient httpClient, java.lang.String url) throws java.io.UnsupportedEncodingExceptionExecutes 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:
java.io.UnsupportedEncodingException
-
-