public abstract class BaseSolrResource extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
SHOW_DEFAULTS |
static String |
UPDATE_TIMEOUT_SECS |
Modifier | Constructor and Description |
---|---|
protected |
BaseSolrResource() |
Modifier and Type | Method and Description |
---|---|
protected void |
addDeprecatedWarning() |
void |
doInit(SolrQueryRequest solrRequest,
SolrQueryResponse solrResponse)
Pulls the SolrQueryRequest constructed in SolrDispatchFilter
from the SolrRequestInfo thread local, then gets the SolrCore
and IndexSchema and sets up the response.
|
String |
getContentType() |
IndexSchema |
getSchema() |
SolrCore |
getSolrCore() |
SolrQueryRequest |
getSolrRequest() |
SolrQueryResponse |
getSolrResponse() |
protected int |
getUpdateTimeoutSecs() |
protected void |
handleException(org.slf4j.Logger log)
If there is an exception on the SolrResponse:
error info is added to the SolrResponse;
the response status code is set to the error code from the exception; and
the exception message is added to the list of things to be logged.
|
protected void |
handlePostExecution(org.slf4j.Logger log)
Deal with an exception on the SolrResponse, fill in response header info,
and log the accumulated messages on the SolrResponse.
|
protected static String |
urlDecode(String str)
Decode URL-encoded strings as UTF-8, and avoid converting "+" to space
|
protected static final String SHOW_DEFAULTS
public static final String UPDATE_TIMEOUT_SECS
public SolrCore getSolrCore()
public IndexSchema getSchema()
public SolrQueryRequest getSolrRequest()
public SolrQueryResponse getSolrResponse()
public String getContentType()
protected int getUpdateTimeoutSecs()
public void doInit(SolrQueryRequest solrRequest, SolrQueryResponse solrResponse)
protected void handlePostExecution(org.slf4j.Logger log)
protected void addDeprecatedWarning()
protected void handleException(org.slf4j.Logger log)
protected static String urlDecode(String str) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.