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 class
V2HttpCall.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 void
execute(SolrQueryResponse rsp)
static Api
getApiInfo(PluginBag<SolrRequestHandler> requestHandlers, String path, String method, String fullPath, Map<String,String> parts)
List<String>
getPathSegments()
protected ValidatingJsonMap
getSpec()
Map<String,String>
getUrlParts()
protected Map<String,JsonSchemaValidator>
getValidators()
protected void
handleAdmin(SolrQueryResponse solrResp)
protected void
init()
protected void
parseRequest()
protected void
populateTracingSpan(io.opentracing.Span span)
protected DocCollection
resolveDocCollection(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:
init
in classHttpSolrCall
- Throws:
Exception
-
resolveDocCollection
protected DocCollection resolveDocCollection(String collectionStr)
Lookup the collection from the collection string (maybe comma delimited). Also setsHttpSolrCall.collectionsList
by side-effect. ifsecondTry
is 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:
handleAdmin
in classHttpSolrCall
-
execute
protected void execute(SolrQueryResponse rsp)
- Overrides:
execute
in classHttpSolrCall
-
populateTracingSpan
protected void populateTracingSpan(io.opentracing.Span span)
- Overrides:
populateTracingSpan
in classHttpSolrCall
-
_getHandler
protected Object _getHandler()
- Overrides:
_getHandler
in classHttpSolrCall
-
getSpec
protected ValidatingJsonMap getSpec()
- Overrides:
getSpec
in classHttpSolrCall
-
getValidators
protected Map<String,JsonSchemaValidator> getValidators()
- Overrides:
getValidators
in classHttpSolrCall
-
-