public static class RestManager.ManagedEndpoint extends BaseSolrResource implements GETable, PUTable, POSTable, DELETEable
BaseSolrResource.SolrOutputRepresentation
Modifier and Type | Field and Description |
---|---|
protected String |
childId |
protected ManagedResource |
managedResource |
SHOW_DEFAULTS, UTF8
Constructor and Description |
---|
RestManager.ManagedEndpoint() |
Modifier and Type | Method and Description |
---|---|
org.restlet.representation.Representation |
delete() |
void |
doInit()
Initialize objects needed to handle a request to the REST API.
|
org.restlet.representation.Representation |
get() |
protected Object |
parseJsonFromRequestBody(org.restlet.representation.Representation entity)
Parses and validates the JSON passed from the to the ManagedResource.
|
org.restlet.representation.Representation |
post(org.restlet.representation.Representation entity) |
org.restlet.representation.Representation |
put(org.restlet.representation.Representation entity) |
static String |
resolveResourceId(org.restlet.Request restletReq)
Determines the ManagedResource resourceId from the Restlet request.
|
getContentType, getSchema, getSolrCore, getSolrRequest, getSolrResponse, handleException, handlePostExecution, urlDecode
abort, commit, 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, 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 ManagedResource managedResource
protected String childId
public static String resolveResourceId(org.restlet.Request restletReq)
public void doInit() throws org.restlet.resource.ResourceException
doInit
in class BaseSolrResource
org.restlet.resource.ResourceException
public org.restlet.representation.Representation put(org.restlet.representation.Representation entity)
public org.restlet.representation.Representation post(org.restlet.representation.Representation entity)
public org.restlet.representation.Representation delete()
delete
in interface DELETEable
delete
in class org.restlet.resource.ServerResource
public org.restlet.representation.Representation get()
protected Object parseJsonFromRequestBody(org.restlet.representation.Representation entity)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.