Class RestManager.ManagedEndpoint

java.lang.Object
org.apache.solr.rest.BaseSolrResource
org.apache.solr.rest.RestManager.ManagedEndpoint
Enclosing class:
RestManager

public static class RestManager.ManagedEndpoint extends BaseSolrResource
Request handling needs a lightweight object to delegate a request to. ManagedResource implementations are heavy-weight objects that live for the duration of a SolrCore, so this class acts as the proxy between the request handler and a ManagedResource when doing request processing.
  • Field Details

  • Constructor Details

    • ManagedEndpoint

      public ManagedEndpoint(RestManager restManager)
  • Method Details

    • resolveResourceId

      public static String resolveResourceId(String path)
      Determines the ManagedResource resourceId from the request path.
    • doInit

      public void doInit(SolrQueryRequest solrRequest, SolrQueryResponse solrResponse)
      Initialize objects needed to handle a request to the REST API. Specifically, we lookup the RestManager using the ThreadLocal SolrRequestInfo and then dynamically locate the ManagedResource associated with the request URI.
      Overrides:
      doInit in class BaseSolrResource
    • delegateRequestToManagedResource

      public void delegateRequestToManagedResource()
    • doDelete

      protected void doDelete()
    • parseJsonFromRequestBody

      protected Object parseJsonFromRequestBody(SolrQueryRequest req)
    • addDeprecatedWarning

      protected void addDeprecatedWarning()
      Overrides:
      addDeprecatedWarning in class BaseSolrResource