Modifier and Type | Field and Description |
---|---|
protected static String |
SHOW_DEFAULTS |
Constructor and Description |
---|
DefaultSchemaResource() |
Modifier and Type | Method and Description |
---|---|
void |
doInit()
Pulls the SolrQueryRequest constructed in SolrDispatchFilter
from the SolrRequestInfo thread local, then gets the SolrCore
and IndexSchema and sets up the response.
|
org.restlet.representation.Representation |
get() |
protected String |
getContentType() |
protected IndexSchema |
getSchema() |
protected SolrCore |
getSolrCore() |
protected SolrQueryRequest |
getSolrRequest() |
protected SolrQueryResponse |
getSolrResponse() |
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
|
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
doError, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getConnegService, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMatrixValue, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getProxyChallengeRequests, getProxyChallengeResponse, getQuery, getQueryValue, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestCacheDirectives, getRequestEntity, getResponse, getResponseAttributes, getResponseCacheDirectives, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, isLoggable, release, setApplication, setQueryValue, setRequest, setResponse, toObject, toRepresentation, toString
protected static final String SHOW_DEFAULTS
public void doInit() throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public org.restlet.representation.Representation get()
protected SolrCore getSolrCore()
protected IndexSchema getSchema()
protected SolrQueryRequest getSolrRequest()
protected SolrQueryResponse getSolrResponse()
protected String getContentType()
protected void handlePostExecution(org.slf4j.Logger log)
protected void handleException(org.slf4j.Logger log)
protected static String urlDecode(String str) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.