Class AbstractSolrAdminHTTPClient

  • Direct Known Subclasses:
    SOLRAdminClient

    public abstract class AbstractSolrAdminHTTPClient
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.json.JSONObject getOperation​(org.apache.commons.httpclient.HttpClient httpClient, java.lang.String url)
      Executes an action or a command in SOLR using REST API
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractSolrAdminHTTPClient

        public AbstractSolrAdminHTTPClient()
    • Method Detail

      • getOperation

        protected org.json.JSONObject getOperation​(org.apache.commons.httpclient.HttpClient httpClient,
                                                   java.lang.String url)
                                            throws java.io.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:
        java.io.UnsupportedEncodingException