Package org.apache.solr.api
Class V2HttpCall
- java.lang.Object
-
- org.apache.solr.servlet.HttpSolrCall
-
- org.apache.solr.api.V2HttpCall
-
@SolrThreadSafe public class V2HttpCall extends HttpSolrCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classV2HttpCall.CompositeApi
-
Field Summary
-
Fields inherited from class org.apache.solr.servlet.HttpSolrCall
action, collectionsList, config, core, cores, coreUrl, handler, INTERNAL_REQUEST_COUNT, invalidStates, origCorename, ORIGINAL_USER_PRINCIPAL_HEADER, path, queryParams, random, req, requestType, response, retry, solrDispatchFilter, solrReq
-
-
Constructor Summary
Constructors Constructor Description V2HttpCall(SolrDispatchFilter solrDispatchFilter, CoreContainer cc, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean retry)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object_getHandler()protected voidexecute(SolrQueryResponse rsp)static ApigetApiInfo(PluginBag<SolrRequestHandler> requestHandlers, String path, String method, String fullPath, Map<String,String> parts)List<String>getPathSegments()protected ValidatingJsonMapgetSpec()Map<String,String>getUrlParts()protected Map<String,JsonSchemaValidator>getValidators()protected voidhandleAdmin(SolrQueryResponse solrResp)protected voidinit()protected voidparseRequest()protected voidpopulateTracingSpan(io.opentracing.Span span)protected DocCollectionresolveDocCollection(String collectionStr)Lookup the collection from the collection string (maybe comma delimited).-
Methods inherited from class org.apache.solr.servlet.HttpSolrCall
addCollectionParamIfNeeded, autoCreateSystemColl, call, extractHandlerFromURLPath, extractRemotePath, getAliases, getCollectionsList, getCommands, getCore, getCoreByCollection, getPath, getQueryParams, getRemoteCoreUrl, getReq, getRequestType, getResponseWriter, getSpan, resolveCollectionListOrAlias, sendError, sendError
-
-
-
-
Constructor Detail
-
V2HttpCall
public V2HttpCall(SolrDispatchFilter solrDispatchFilter, CoreContainer cc, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean retry)
-
-
Method Detail
-
init
protected void init() throws Exception- Overrides:
initin classHttpSolrCall- Throws:
Exception
-
resolveDocCollection
protected DocCollection resolveDocCollection(String collectionStr)
Lookup the collection from the collection string (maybe comma delimited). Also setsHttpSolrCall.collectionsListby side-effect. ifsecondTryis false then we'll potentially recursively try this all one more time while ensuring the alias and collection info is sync'ed from ZK.
-
getApiInfo
public static Api getApiInfo(PluginBag<SolrRequestHandler> requestHandlers, String path, String method, String fullPath, Map<String,String> parts)
-
handleAdmin
protected void handleAdmin(SolrQueryResponse solrResp)
- Overrides:
handleAdminin classHttpSolrCall
-
execute
protected void execute(SolrQueryResponse rsp)
- Overrides:
executein classHttpSolrCall
-
populateTracingSpan
protected void populateTracingSpan(io.opentracing.Span span)
- Overrides:
populateTracingSpanin classHttpSolrCall
-
_getHandler
protected Object _getHandler()
- Overrides:
_getHandlerin classHttpSolrCall
-
getSpec
protected ValidatingJsonMap getSpec()
- Overrides:
getSpecin classHttpSolrCall
-
getValidators
protected Map<String,JsonSchemaValidator> getValidators()
- Overrides:
getValidatorsin classHttpSolrCall
-
-