Class AbstractSolrAdminHTTPClient

java.lang.Object
org.alfresco.repo.search.impl.solr.AbstractSolrAdminHTTPClient
Direct Known Subclasses:
SOLRAdminClient

public abstract class AbstractSolrAdminHTTPClient extends Object
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 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 invocation
      url - Complete URL of SOLR REST API Endpoint
      Returns:
      A JSON Object including SOLR response
      Throws:
      UnsupportedEncodingException