Package org.apache.solr.rest
Class RestManager.ManagedEndpoint
java.lang.Object
org.apache.solr.rest.BaseSolrResource
org.apache.solr.rest.RestManager.ManagedEndpoint
- Enclosing class:
RestManager
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 Summary
FieldsFields inherited from class org.apache.solr.rest.BaseSolrResource
SHOW_DEFAULTS, UPDATE_TIMEOUT_SECS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidprotected voiddoDelete()voiddoInit(SolrQueryRequest solrRequest, SolrQueryResponse solrResponse) Initialize objects needed to handle a request to the REST API.protected Objectstatic StringresolveResourceId(String path) Determines the ManagedResource resourceId from the request path.Methods inherited from class org.apache.solr.rest.BaseSolrResource
getContentType, getSchema, getSolrCore, getSolrRequest, getSolrResponse, getUpdateTimeoutSecs, handleException, handlePostExecution, urlDecode
-
Field Details
-
managedResource
-
childId
-
-
Constructor Details
-
ManagedEndpoint
-
-
Method Details
-
resolveResourceId
Determines the ManagedResource resourceId from the request path. -
doInit
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:
doInitin classBaseSolrResource
-
delegateRequestToManagedResource
public void delegateRequestToManagedResource() -
doDelete
protected void doDelete() -
parseJsonFromRequestBody
-
addDeprecatedWarning
protected void addDeprecatedWarning()- Overrides:
addDeprecatedWarningin classBaseSolrResource
-