Class XlayerControl

java.lang.Object
org.restlet.resource.Resource
org.restlet.resource.ServerResource
org.opensextant.xlayer.server.TaggerResource
org.opensextant.xlayer.server.XlayerControl

public class XlayerControl extends TaggerResource
  • 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.restlet.representation.Representation
    control(org.restlet.representation.Representation params)
    /control/OPERATION, for example: /control/ping /control/stop
    org.opensextant.extraction.Extractor
    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
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • XlayerControl

      public XlayerControl()
  • Method Details

    • stop

      public void stop()
    • getExtractor

      public org.opensextant.extraction.Extractor getExtractor(String xid)
      get Xponents Exxtractor object from global attributes.
      Specified by:
      getExtractor in class TaggerResource
    • 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 class TaggerResource
      Parameters:
      input - signal
      jobParams - 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: