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
 
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 Summary
Fields Modifier and Type Field Description protected StringchildIdprotected ManagedResourcemanagedResource- 
Fields inherited from class org.apache.solr.rest.BaseSolrResource
SHOW_DEFAULTS, UPDATE_TIMEOUT_SECS 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ManagedEndpoint(RestManager restManager) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDeprecatedWarning()voiddelegateRequestToManagedResource()protected voiddoDelete()voiddoInit(SolrQueryRequest solrRequest, SolrQueryResponse solrResponse)Initialize objects needed to handle a request to the REST API.protected ObjectparseJsonFromRequestBody(SolrQueryRequest req)static 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 Detail
- 
managedResource
protected ManagedResource managedResource
 
- 
childId
protected String childId
 
 - 
 
- 
Constructor Detail
- 
ManagedEndpoint
public ManagedEndpoint(RestManager restManager)
 
 - 
 
- 
Method Detail
- 
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:
 doInitin classBaseSolrResource
 
- 
delegateRequestToManagedResource
public void delegateRequestToManagedResource()
 
- 
doDelete
protected void doDelete()
 
- 
parseJsonFromRequestBody
protected Object parseJsonFromRequestBody(SolrQueryRequest req)
 
- 
addDeprecatedWarning
protected void addDeprecatedWarning()
- Overrides:
 addDeprecatedWarningin classBaseSolrResource
 
 - 
 
 -