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
-
Method Summary
Modifier and TypeMethodDescriptionorg.restlet.representation.Representation
control
(org.restlet.representation.Representation params) /control/OPERATION, for example: /control/ping /control/stoporg.opensextant.extraction.Extractor
getExtractor
(String xid) get Xponents Exxtractor object from global attributes.org.restlet.representation.Representation
process
(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.void
stop()
Methods inherited from class org.opensextant.xlayer.server.TaggerResource
debug, doInit, error, fromArray, fromRequest, fromRequest, getProperty, info, isDebug, parseParameters, ping, resetParameters, status
Methods 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, updateDimensions
Methods 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:
getExtractor
in classTaggerResource
-
process
public org.restlet.representation.Representation process(org.opensextant.data.TextInput input, org.opensextant.processing.Parameters jobParams) Description copied from class:TaggerResource
Implement the processing of a single Input given some request parameters Based on the processing and the request, format response accordingly.- Specified by:
process
in 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:
-