Class ContentGet
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.alfresco.repo.web.scripts.content.StreamContent
-
- org.alfresco.repo.web.scripts.content.ContentGet
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.extensions.webscripts.WebScript
,org.springframework.web.context.ServletContextAware
- Direct Known Subclasses:
QuickShareContentGet
public class ContentGet extends StreamContent implements org.springframework.web.context.ServletContextAware
Content Retrieval Service Stream content from the Repository.- Author:
- davidc
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.web.scripts.content.StreamContent
delegate, mimetypeService, nodeService, permissionService, repository
-
-
Constructor Summary
Constructors Constructor Description ContentGet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res)
void
setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
void
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
void
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
void
setServletContext(javax.servlet.ServletContext servletContext)
protected void
streamContentLocal(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res, org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean attach, org.alfresco.service.namespace.QName propertyQName, Map<String,Object> model)
-
Methods inherited from class org.alfresco.repo.web.scripts.content.StreamContent
createObjectReferenceFromUrl, executeImpl, executeImpl, executeImpl, renderFormatTemplate, setAttachment, setDelegate, setMimetypeService, setNodeService, setPermissionService, setRepository, streamContent, streamContent, streamContent, streamContentImpl
-
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
-
-
-
-
Method Detail
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
- Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
- Parameters:
servletContext
- ServletContext
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
- Parameters:
dictionaryService
- DictionaryService
-
setNamespaceService
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
- Parameters:
namespaceService
- NamespaceService
-
setContentService
public void setContentService(org.alfresco.service.cmr.repository.ContentService contentService)
- Parameters:
contentService
- ContentService
-
execute
public void execute(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res) throws IOException
- Specified by:
execute
in interfaceorg.springframework.extensions.webscripts.WebScript
- Overrides:
execute
in classStreamContent
- Throws:
IOException
- See Also:
WebScript.execute(WebScriptRequest, WebScriptResponse)
-
streamContentLocal
protected void streamContentLocal(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.WebScriptResponse res, org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean attach, org.alfresco.service.namespace.QName propertyQName, Map<String,Object> model) throws IOException
- Throws:
IOException
-
-