public class HttpSolrCall extends Object
Modifier and Type | Field and Description |
---|---|
protected SolrDispatchFilter.Action |
action |
protected Aliases |
aliases |
protected List<String> |
collectionsList |
protected SolrConfig |
config |
protected SolrCore |
core |
protected String |
corename |
protected CoreContainer |
cores |
protected String |
coreUrl |
protected SolrRequestHandler |
handler |
protected Map<String,Integer> |
invalidStates |
protected String |
origCorename |
protected String |
path |
protected SolrParams |
queryParams |
protected javax.servlet.http.HttpServletRequest |
req |
protected AuthorizationContext.RequestType |
requestType |
protected javax.servlet.http.HttpServletResponse |
response |
protected boolean |
retry |
protected SolrDispatchFilter |
solrDispatchFilter |
protected SolrQueryRequest |
solrReq |
protected boolean |
usingAliases |
Constructor and Description |
---|
HttpSolrCall(SolrDispatchFilter solrDispatchFilter,
CoreContainer cores,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean retry) |
Modifier and Type | Method and Description |
---|---|
protected Object |
_getHandler() |
protected void |
autoCreateSystemColl(String corename) |
SolrDispatchFilter.Action |
call()
This method processes the request.
|
protected void |
execute(SolrQueryResponse rsp) |
protected void |
extractHandlerFromURLPath(SolrRequestParsers parser)
Extract handler from the URL path if not set.
|
protected void |
extractRemotePath(String corename,
String origCorename,
int idx) |
List<String> |
getCollectionsList() |
List<CommandOperation> |
getCommands(boolean validateInput) |
SolrCore |
getCore() |
protected SolrCore |
getCoreByCollection(String collectionName,
boolean isPreferLeader) |
String |
getPath() |
SolrParams |
getQueryParams() |
javax.servlet.http.HttpServletRequest |
getReq() |
AuthorizationContext.RequestType |
getRequestType() |
protected QueryResponseWriter |
getResponseWriter() |
protected ValidatingJsonMap |
getSpec() |
protected Map<String,JsonSchemaValidator> |
getValidators() |
protected void |
handleAdmin(SolrQueryResponse solrResp) |
protected void |
init() |
protected String |
lookupAliases(String collName) |
protected void |
processAliases(Aliases aliases,
List<String> collectionsList) |
protected void |
sendError(int code,
String message) |
protected void |
sendError(Throwable ex) |
protected final SolrDispatchFilter solrDispatchFilter
protected final CoreContainer cores
protected final javax.servlet.http.HttpServletRequest req
protected final javax.servlet.http.HttpServletResponse response
protected final boolean retry
protected SolrCore core
protected SolrQueryRequest solrReq
protected SolrRequestHandler handler
protected final SolrParams queryParams
protected String path
protected SolrDispatchFilter.Action action
protected String coreUrl
protected SolrConfig config
protected boolean usingAliases
protected Aliases aliases
protected String corename
protected String origCorename
protected AuthorizationContext.RequestType requestType
public HttpSolrCall(SolrDispatchFilter solrDispatchFilter, CoreContainer cores, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean retry)
public AuthorizationContext.RequestType getRequestType()
public String getPath()
public javax.servlet.http.HttpServletRequest getReq()
public SolrCore getCore()
public SolrParams getQueryParams()
protected void autoCreateSystemColl(String corename) throws Exception
Exception
protected void extractHandlerFromURLPath(SolrRequestParsers parser) throws Exception
Exception
protected void extractRemotePath(String corename, String origCorename, int idx) throws UnsupportedEncodingException, org.apache.zookeeper.KeeperException, InterruptedException
UnsupportedEncodingException
org.apache.zookeeper.KeeperException
InterruptedException
public SolrDispatchFilter.Action call() throws IOException
IOException
protected void sendError(Throwable ex) throws IOException
IOException
protected void sendError(int code, String message) throws IOException
IOException
protected void execute(SolrQueryResponse rsp)
protected QueryResponseWriter getResponseWriter()
protected void handleAdmin(SolrQueryResponse solrResp)
protected SolrCore getCoreByCollection(String collectionName, boolean isPreferLeader)
protected Object _getHandler()
public List<CommandOperation> getCommands(boolean validateInput)
protected ValidatingJsonMap getSpec()
protected Map<String,JsonSchemaValidator> getValidators()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.