public class ExecutionResource extends ServerResource
Executable
document for the POST verb and redirects its standard
output to a StringRepresentation
.
document
, application
and conversation
services are available as global variables in scriptlets. See
ExecutionResourceDocumentService
, ApplicationService
and
ExecutionResourceConversationService
.
Summary of settings configured via the application's Context
:
com.threecrickets.prudence.cache:
Cache
.com.threecrickets.prudence.ExecutionResource.applicationServiceName
: Defaults to "application".com.threecrickets.prudence.ExecutionResource.conversationServiceName
: Defaults to "conversation".com.threecrickets.prudence.ExecutionResource.debug:
Boolean
, defaults to false.com.threecrickets.prudence.ExecutionResource.defaultCharacterSet:
CharacterSet
, defaults to CharacterSet.UTF_8
.com.threecrickets.prudence.ExecutionResource.defaultLanguageTag:
String
, defaults to "javascript".com.threecrickets.prudence.ExecutionResource.defaultName:
String
, defaults to "default".com.threecrickets.prudence.ExecutionResource.documentFormatter:
DocumentFormatter
. Defaults to a JygmentsDocumentFormatter
.
com.threecrickets.prudence.ExecutionResource.documentServiceName
: Defaults to "document".com.threecrickets.prudence.ExecutionResource.documentSource:
DocumentSource
. Required.com.threecrickets.prudence.ExecutionResource.executionController:
ExecutionController
.com.threecrickets.prudence.ExecutionResource.fileUploadDirectory:
File
, defaults to "uploads" under the application root.com.threecrickets.prudence.ExecutionResource.fileUploadSizeThreshold:
Integer
, defaults to zero.com.threecrickets.prudence.ExecutionResource.languageManager:
LanguageManager
, defaults to a new instance.com.threecrickets.prudence.ExecutionResource.libraryDocumentSources:
Iterable
of DocumentSource
of Executable
.com.threecrickets.prudence.ExecutionResource.parserManager:
ParserManager
, defaults to a new instance.com.threecrickets.prudence.ExecutionResource.prepare:
Boolean
, defaults to true.com.threecrickets.prudence.ExecutionResource.sourceViewable:
Boolean
, defaults to false.com.threecrickets.prudence.ExecutionResource.trailingSlashRequired:
Boolean
, defaults to true."Restlet" is a registered trademark of Restlet S.A.S..
Constructor and Description |
---|
ExecutionResource() |
Modifier and Type | Method and Description |
---|---|
protected void |
doInit()
Initializes the resource.
|
com.threecrickets.prudence.internal.attributes.ExecutionResourceAttributes |
getAttributes()
The attributes as configured in the
Application context. |
Representation |
post(Representation entity) |
Representation |
post(Representation entity,
Variant variant) |
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, 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, 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 com.threecrickets.prudence.internal.attributes.ExecutionResourceAttributes getAttributes()
Application
context.protected void doInit() throws ResourceException
doInit
in class Resource
ResourceException
public Representation post(Representation entity) throws ResourceException
post
in class ServerResource
ResourceException
public Representation post(Representation entity, Variant variant) throws ResourceException
post
in class ServerResource
ResourceException
Copyright © 2009-2016 Three Crickets LLC.