public class PolyglotRestlet
extends org.restlet.resource.ServerResource
Constructor and Description |
---|
PolyglotRestlet() |
Modifier and Type | Method and Description |
---|---|
String |
getForm()
Get a web form interface for this restful service.
|
String |
getForm(boolean POST_UPLOADS,
String selected_output)
Get a web form interface for this restful service.
|
org.restlet.representation.Representation |
httpGetHandler()
Handle HTTP GET requests.
|
org.restlet.representation.Representation |
httpPostHandler(org.restlet.representation.Representation entity)
Handle HTTP POST requests.
|
static void |
main(String[] args)
Start the Polyglot REST interface.
|
void |
setPurgeJobs(boolean value)
Set whether or not previous jobs should be purged or not.
|
void |
setReturnURL(boolean value)
Set whether or not to return a URL as the result (as opposed to the file itself).
|
void |
setSoftwareServerRESTInterface(boolean value)
Set whether or not to access Software Servers via their REST interface.
|
void |
stop()
Stop the REST interface.
|
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
doError, doInit, 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 setReturnURL(boolean value)
value
- true if the URL to the resulting file should be returnedpublic void setSoftwareServerRESTInterface(boolean value)
value
- true if a Software Servers REST interface should be usedpublic void setPurgeJobs(boolean value)
value
- true if previous jobs should be purgedpublic String getForm(boolean POST_UPLOADS, String selected_output)
POST_UPLOADS
- true if this form should use POST rather than GET for uploading filesselected_output
- the default output formatpublic String getForm()
@Get public org.restlet.representation.Representation httpGetHandler()
@Post public org.restlet.representation.Representation httpPostHandler(org.restlet.representation.Representation entity)
entity
- the entitypublic void stop()
public static void main(String[] args)
args
- command line argumentsCopyright © 2021. All rights reserved.