public class ScriptResource extends JobRelatedResource
Modifier and Type | Field and Description |
---|---|
protected String |
chosenEngine |
protected static LinkedList<ScriptEngineFactory> |
FACTORIES |
protected static ScriptEngineManager |
MANAGER |
beanToNameMap, cj, HIDDEN_PROPS
Constructor and Description |
---|
ScriptResource(org.restlet.Context ctx,
org.restlet.data.Request req,
org.restlet.data.Response res) |
Modifier and Type | Method and Description |
---|---|
void |
acceptRepresentation(org.restlet.resource.Representation entity) |
protected Collection<Map<String,String>> |
getAvailableScriptEngines() |
freemarker.template.Configuration |
getTemplateConfiguration() |
protected ScriptModel |
makeDataModel()
Constructs a nested Map data structure with the information represented
by this Resource.
|
org.restlet.resource.Representation |
represent(org.restlet.resource.Variant variant) |
void |
setTemplateConfiguration(freemarker.template.Configuration tmpltCfg) |
protected void |
writeHtml(Writer writer) |
addPresentableNestedNames, defaultUpdateDescriptor, getEngine, getPropertyDescriptors, makePresentableMapFor, makePresentableMapFor, makePresentableMapFor
getPreferredVariant, getStaticRef
allowDelete, allowGet, allowPost, allowPut, delete, getPreferredRepresentation, getRepresentation, getVariants, handleDelete, handleGet, handlePost, handlePut, init, isAvailable, isModifiable, isNegotiateContent, isReadable, post, put, removeRepresentations, represent, setAvailable, setModifiable, setNegotiateContent, setReadable, setVariants, storeRepresentation
protected static ScriptEngineManager MANAGER
protected static LinkedList<ScriptEngineFactory> FACTORIES
protected String chosenEngine
public ScriptResource(org.restlet.Context ctx, org.restlet.data.Request req, org.restlet.data.Response res) throws org.restlet.resource.ResourceException
org.restlet.resource.ResourceException
public void setTemplateConfiguration(freemarker.template.Configuration tmpltCfg)
public freemarker.template.Configuration getTemplateConfiguration()
public void acceptRepresentation(org.restlet.resource.Representation entity) throws org.restlet.resource.ResourceException
acceptRepresentation
in class org.restlet.resource.Resource
org.restlet.resource.ResourceException
public org.restlet.resource.Representation represent(org.restlet.resource.Variant variant) throws org.restlet.resource.ResourceException
represent
in class org.restlet.resource.Resource
org.restlet.resource.ResourceException
protected Collection<Map<String,String>> getAvailableScriptEngines()
protected ScriptModel makeDataModel()
XmlMarshaller
.protected void writeHtml(Writer writer)
Copyright © 2003-2014 Internet Archive. All Rights Reserved.