Class ApiWebScript
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.alfresco.rest.framework.webscripts.ApiWebScript
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
- Direct Known Subclasses:
AbstractResourceWebScript,InfoWebScriptGet,NetworksWebScriptGet,NetworkWebScriptGet,WebScriptOptionsMetaData
public abstract class ApiWebScript extends org.springframework.extensions.webscripts.AbstractWebScriptEntry point for API webscript. Supports version/scope as well as discovery.- Author:
- Gethin James
-
-
Field Summary
Fields Modifier and Type Field Description protected ApiAssistantassistantprotected booleanencryptTempFilesprotected longmaxContentSizeprotected intmemoryThresholdprotected Supplier<TempOutputStream>streamFactoryprotected StringtempDirectoryNameprotected TransactionServicetransactionService
-
Constructor Summary
Constructors Constructor Description ApiWebScript()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidexecute(Api api, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)voidexecute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)protected BufferedRequestgetRequest(org.springframework.extensions.webscripts.WebScriptRequest req)protected BufferedResponsegetResponse(org.springframework.extensions.webscripts.WebScriptResponse resp)voidinit()voidsetAssistant(ApiAssistant assistant)voidsetEncryptTempFiles(boolean encryptTempFiles)voidsetMaxContentSize(long maxContentSize)voidsetMemoryThreshold(int memoryThreshold)voidsetStreamFactory(Supplier<TempOutputStream> streamFactory)voidsetTempDirectoryName(String tempDirectoryName)voidsetTransactionService(TransactionService transactionService)-
Methods inherited from class org.springframework.extensions.webscripts.AbstractWebScript
addModuleBundleToCache, checkModuleBundleCache, createArgs, createArgsM, createHeaders, createHeadersM, createScriptParameters, createStatusException, createTemplateParameters, executeScript, getContainer, getDescription, getExecuteScript, getResources, getStatusTemplate, init, renderString, renderString, renderTemplate, sendStatus, setURLModelFactory, toString
-
-
-
-
Field Detail
-
assistant
protected ApiAssistant assistant
-
encryptTempFiles
protected boolean encryptTempFiles
-
tempDirectoryName
protected String tempDirectoryName
-
memoryThreshold
protected int memoryThreshold
-
maxContentSize
protected long maxContentSize
-
streamFactory
protected Supplier<TempOutputStream> streamFactory
-
transactionService
protected TransactionService transactionService
-
-
Method Detail
-
setTransactionService
public void setTransactionService(TransactionService transactionService)
-
setAssistant
public void setAssistant(ApiAssistant assistant)
-
setTempDirectoryName
public void setTempDirectoryName(String tempDirectoryName)
-
setEncryptTempFiles
public void setEncryptTempFiles(boolean encryptTempFiles)
-
setMemoryThreshold
public void setMemoryThreshold(int memoryThreshold)
-
setMaxContentSize
public void setMaxContentSize(long maxContentSize)
-
setStreamFactory
public void setStreamFactory(Supplier<TempOutputStream> streamFactory)
-
init
public void init()
-
execute
public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException- Throws:
IOException
-
getRequest
protected BufferedRequest getRequest(org.springframework.extensions.webscripts.WebScriptRequest req)
-
getResponse
protected BufferedResponse getResponse(org.springframework.extensions.webscripts.WebScriptResponse resp)
-
execute
public abstract void execute(Api api, org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
- Throws:
IOException
-
-