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 |
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.
|
static String |
toString(Collection<String> strings)
Convert a Collection of strings to a line separated list of strings.
|
static void |
updateMongo()
Push logged information to mongo.
|
static void |
updateMongo(PolyglotAuxiliary.RequestInformation request)
Push request information to mongo.
|
abort, commit, delete, delete, describeVariants, doCatch, doConditionalHandle, doError, doHandle, doHandle, doNegotiatedHandle, get, get, getAttribute, getInfo, getInfo, 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, setDimensions, setExisting, setLocationRef, setLocationRef, 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, toObject, toRepresentation, 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 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 updateMongo()
public static void updateMongo(PolyglotAuxiliary.RequestInformation request)
public static String toString(Collection<String> strings)
strings
- a Collection of stringspublic static void main(String[] args)
args
- command line argumentsCopyright © 2014. All rights reserved.