public class FieldTypeCollectionResource extends BaseSolrResource implements GETable, POSTable
BaseSolrResource.SolrOutputRepresentation
SHOW_DEFAULTS, UPDATE_TIMEOUT_SECS
Constructor and Description |
---|
FieldTypeCollectionResource() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNewFieldTypes(List<FieldType> newFieldTypes,
ManagedIndexSchema oldSchema)
Adds one or more new FieldType definitions to the managed schema for the given core.
|
protected void |
addOrUpdateFieldTypes(List<Map<String,Object>> fieldTypeList) |
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 List<String> |
getDynamicFieldsWithFieldType(FieldType fieldType)
Returns dynamic field lists from the map constructed in doInit()
|
protected List<String> |
getFieldsWithFieldType(FieldType fieldType)
Returns field lists from the map constructed in doInit()
|
protected SimpleOrderedMap<Object> |
getFieldTypeProperties(FieldType fieldType)
Used by subclasses to collect field type properties
|
org.restlet.representation.Representation |
post(org.restlet.representation.Representation entity) |
getContentType, getSchema, getSolrCore, getSolrRequest, getSolrResponse, getUpdateTimeoutSecs, handleException, handlePostExecution, urlDecode
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, getAttribute, getDescription, getInfo, getInfo, getName, getOnSent, getPreferredVariant, getRole, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, patch, patch, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDescription, setDimensions, setExisting, setLocationRef, setLocationRef, setName, 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, toBoolean, toByte, toDouble, toFloat, toInteger, toLong, toObject, toRepresentation, toRepresentation, toRepresentation, toShort, toString
public void doInit() throws org.restlet.resource.ResourceException
BaseSolrResource
If an error occurs during initialization, setExisting(false) is called and an error status code and message is set; in this case, Restlet will not continue servicing the request (by calling the method annotated to associate it with GET, etc., but rather will send an error response.
org.restlet.resource.ResourceException
public org.restlet.representation.Representation get()
protected List<String> getFieldsWithFieldType(FieldType fieldType)
protected List<String> getDynamicFieldsWithFieldType(FieldType fieldType)
public org.restlet.representation.Representation post(org.restlet.representation.Representation entity)
protected void addOrUpdateFieldTypes(List<Map<String,Object>> fieldTypeList) throws Exception
Exception
protected SimpleOrderedMap<Object> getFieldTypeProperties(FieldType fieldType)
protected void addNewFieldTypes(List<FieldType> newFieldTypes, ManagedIndexSchema oldSchema)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.