Package org.opensextant.xlayer.server
Class XlayerControl
java.lang.Object
org.restlet.resource.Resource
org.restlet.resource.ServerResource
org.opensextant.xlayer.server.TaggerResource
org.opensextant.xlayer.server.XlayerControl
-
Field Summary
Fields inherited from class org.opensextant.xlayer.server.TaggerResource
DATE_TAGGER, extractorSet, FLD_FEATURES, FLD_STATUS, GEO_TAGGER, log, operation, POSTAL_TAGGER, TAXON_TAGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.restlet.representation.Representationcontrol(org.restlet.representation.Representation params) /control/OPERATION, for example: /control/ping /control/stoporg.opensextant.extraction.ExtractorgetExtractor(String xid) get Xponents Exxtractor object from global attributes.org.restlet.representation.Representationprocess(org.opensextant.data.TextInput input, org.opensextant.processing.Parameters jobParams) Implement the processing of a single Input given some request parameters Based on the processing and the request, format response accordingly.voidstop()Methods inherited from class org.opensextant.xlayer.server.TaggerResource
debug, doInit, error, fromArray, fromRequest, fromRequest, getProperty, info, isDebug, parseParameters, ping, resetParameters, statusMethods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, 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, 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, updateDimensionsMethods inherited from class org.restlet.resource.Resource
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
-
Constructor Details
-
XlayerControl
public XlayerControl()
-
-
Method Details
-
stop
public void stop() -
getExtractor
get Xponents Exxtractor object from global attributes.- Specified by:
getExtractorin classTaggerResource
-
process
public org.restlet.representation.Representation process(org.opensextant.data.TextInput input, org.opensextant.processing.Parameters jobParams) Description copied from class:TaggerResourceImplement the processing of a single Input given some request parameters Based on the processing and the request, format response accordingly.- Specified by:
processin classTaggerResource- Parameters:
input- signaljobParams- controls- Returns:
- JSON or other formatted response.
-
control
@Get public org.restlet.representation.Representation control(org.restlet.representation.Representation params) /control/OPERATION, for example: /control/ping /control/stop- Parameters:
params-- Returns:
-