public abstract class AbstractResourceWebScript extends ApiWebScript implements HttpMethodSupport, ActionExecutor, ResponseWriter
Modifier and Type | Field and Description |
---|---|
protected ResourceWebScriptHelper |
helper |
protected ResourceLocator |
locator |
assistant, encryptTempFiles, maxContentSize, memoryThreshold, streamFactory, tempDirectoryName, transactionService
CACHE_NEVER, DEFAULT_JSON_CONTENT, DEFAULT_SUCCESS, UTF8
Constructor and Description |
---|
AbstractResourceWebScript() |
Modifier and Type | Method and Description |
---|---|
void |
execute(Api api,
org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.WebScriptResponse res) |
Object |
execute(ResourceWithMetadata resource,
Params params,
org.springframework.extensions.webscripts.WebScriptResponse res,
boolean isReadOnly) |
org.springframework.http.HttpMethod |
getHttpMethod() |
void |
setHelper(ResourceWebScriptHelper helper) |
void |
setHttpMethod(org.springframework.http.HttpMethod httpMethod) |
void |
setLocator(ResourceLocator locator) |
void |
setParamsExtractor(ParamsExtractor paramsExtractor) |
void |
setStreamer(ContentStreamer streamer) |
protected void |
streamResponse(org.springframework.extensions.webscripts.WebScriptRequest req,
org.springframework.extensions.webscripts.WebScriptResponse res,
BinaryResource resource) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
executeAction
renderErrorResponse, renderException, renderJsonResponse, resWriterLogger, setContentInfoOnResponse, setResponse, setResponse
protected ResourceLocator locator
protected ResourceWebScriptHelper helper
public void execute(Api api, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
execute
in class ApiWebScript
IOException
public Object execute(ResourceWithMetadata resource, Params params, org.springframework.extensions.webscripts.WebScriptResponse res, boolean isReadOnly)
protected void streamResponse(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res, BinaryResource resource) throws IOException
IOException
public void setLocator(ResourceLocator locator)
public void setHttpMethod(org.springframework.http.HttpMethod httpMethod)
public void setParamsExtractor(ParamsExtractor paramsExtractor)
public void setHelper(ResourceWebScriptHelper helper)
public org.springframework.http.HttpMethod getHttpMethod()
getHttpMethod
in interface HttpMethodSupport
public void setStreamer(ContentStreamer streamer)
Copyright © 2005–2017 Alfresco Software. All rights reserved.