public class ThesaurusResource extends BaseAdornerServerResource
BaseAdornerServerResource.ParameterInfoComparable| Modifier and Type | Field and Description |
|---|---|
protected static java.util.Set<java.lang.String> |
allowedWordClasses
Allowed word classes.
|
HEADERS_KEY, WADLBOOLEAN, WADLINT, WADLSTRING| Constructor and Description |
|---|
ThesaurusResource() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<org.restlet.ext.wadl.ParameterInfo> |
describeParameters()
Describe the parameters.
|
protected void |
doInit()
Initialize resource.
|
org.restlet.representation.Representation |
handleGet()
Handle Get request.
|
org.restlet.representation.Representation |
handlePost(org.restlet.representation.Representation representation)
Handle Post request.
|
ThesaurusResult |
thesaurusLookup(org.restlet.data.Form queryParams)
Perform thesaurus lookup.
|
addCORSHeaders, addStatusCodes, createHtmlRepresentation, describeGet, describePost, doOptions, extractSentences, getBooleanValue, getIntValue, getMessageHeaders, hyphenate, postResults, postResults, postResults, postResults, recognizeLanguage, recognizeLanguage, sortParams, unTagcanDescribe, createWadlRepresentation, describe, describe, describe, describe, describe, describe, describe, describe, describeDelete, describeMethod, describeMethod, describeOptions, describePut, getDescription, getName, getParameter, getParameters, getPreferredWadlVariant, getResourcePath, getResourcesBase, getWadlVariants, isAutoDescribing, options, setAutoDescribing, setDescription, setNameabort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, getVariants, handle, hasAnnotations, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAttribute, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setProxyChallengeRequests, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensionsdoError, 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, toObject, toRepresentation, toStringprotected static java.util.Set<java.lang.String> allowedWordClasses
protected void doInit()
throws org.restlet.resource.ResourceException
doInit in class org.restlet.ext.wadl.WadlServerResourceorg.restlet.resource.ResourceException@Get(value="txt|html|xml|json") public org.restlet.representation.Representation handleGet()
@Post(value="form:txt|html|xml|json") public org.restlet.representation.Representation handlePost(org.restlet.representation.Representation representation)
representation - Input form.public ThesaurusResult thesaurusLookup(org.restlet.data.Form queryParams)
queryParams - Query parameters.protected java.util.List<org.restlet.ext.wadl.ParameterInfo> describeParameters()
describeParameters in class BaseAdornerServerResource