public class FieldTypeResource extends BaseSolrResource implements GETable, PUTable
BaseSolrResource.SolrOutputRepresentation
SHOW_DEFAULTS, UPDATE_TIMEOUT_SECS
Constructor and Description |
---|
FieldTypeResource() |
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 |
addOrUpdateFieldType(Map<String,Object> fieldTypeJson) |
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 a dynamic field list using the given field type by iterating over all
dynamic fields defined in the schema.
|
protected List<String> |
getFieldsWithFieldType(FieldType fieldType)
Returns a field list using the given field type by iterating over all fields
defined in the schema.
|
protected SimpleOrderedMap<Object> |
getFieldTypeProperties(FieldType fieldType)
Used by subclasses to collect field type properties
|
org.restlet.representation.Representation |
put(org.restlet.representation.Representation entity)
Accepts JSON add fieldtype request, to URL
|
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, post, 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 put(org.restlet.representation.Representation entity)
protected SimpleOrderedMap<Object> getFieldTypeProperties(FieldType fieldType)
protected void addNewFieldTypes(List<FieldType> newFieldTypes, ManagedIndexSchema oldSchema)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.