public class WebScriptOptionsMetaData extends ApiWebScript implements ResourceMetaDataWriter
assistant, encryptTempFiles, maxContentSize, memoryThreshold, streamFactory, tempDirectoryName, transactionService
Constructor and Description |
---|
WebScriptOptionsMetaData() |
Modifier and Type | Method and Description |
---|---|
protected ResourceMetaDataWriter |
chooseWriter(org.springframework.extensions.webscripts.WebScriptRequest req)
Chooses the correct writer to use based on the supplied "format" param
|
void |
execute(Api api,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.WebScriptResponse res) |
static Object |
processResult(ResourceWithMetadata resource,
Map<String,ResourceWithMetadata> apiResources)
Processes the resulting resource and returns the data to be displayed
|
void |
setLookupDictionary(ResourceLookupDictionary lookupDictionary) |
void |
setWriters(Map<String,ResourceMetaDataWriter> writers) |
void |
writeMetaData(OutputStream out,
ResourceWithMetadata resource,
Map<String,ResourceWithMetadata> allApiResources)
Write the metadata to the OutputStream
|
execute, getRequest, getResponse, init, setAssistant, setEncryptTempFiles, setMaxContentSize, setMemoryThreshold, setStreamFactory, setTempDirectoryName, setTransactionService
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
public void setLookupDictionary(ResourceLookupDictionary lookupDictionary)
public void execute(Api api, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
execute
in class ApiWebScript
IOException
protected ResourceMetaDataWriter chooseWriter(org.springframework.extensions.webscripts.WebScriptRequest req)
req
- - the WebScriptRequestpublic static Object processResult(ResourceWithMetadata resource, Map<String,ResourceWithMetadata> apiResources)
resource
- ResourceWithMetadatapublic void writeMetaData(OutputStream out, ResourceWithMetadata resource, Map<String,ResourceWithMetadata> allApiResources) throws IOException
ResourceMetaDataWriter
writeMetaData
in interface ResourceMetaDataWriter
out
- OutputStreamresource
- - the selected resourceallApiResources
- - all resources for the API versionIOException
public void setWriters(Map<String,ResourceMetaDataWriter> writers)
Copyright © 2005–2017 Alfresco Software. All rights reserved.