Class MimetypesGet
- java.lang.Object
-
- org.springframework.extensions.webscripts.AbstractWebScript
-
- org.springframework.extensions.webscripts.DeclarativeWebScript
-
- org.alfresco.repo.web.scripts.content.MimetypesGet
-
- All Implemented Interfaces:
org.springframework.extensions.webscripts.WebScript
public class MimetypesGet extends org.springframework.extensions.webscripts.DeclarativeWebScript
Lists mimetypes.- Since:
- 3.4.b
- Author:
- Nick Burch
-
-
Field Summary
Fields Modifier and Type Field Description static String
MODEL_EXTENSIONS
static String
MODEL_MIMETYPE_DETAILS
static String
MODEL_MIMETYPES
-
Constructor Summary
Constructors Constructor Description MimetypesGet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
protected List<String>
getExtractors(String mimetype)
protected String
getTransformer(String from, long sourceSize, String to)
Note - for now, only does the best one, not allprotected List<String>
getTransformersFrom(String mimetype, long sourceSize, List<String> allMimetypes)
protected List<String>
getTransformersTo(String mimetype, long sourceSize, List<String> allMimetypes)
void
setLocalTransformServiceRegistry(TransformServiceRegistry localTransformServiceRegistry)
void
setMetadataExtracterRegistry(MetadataExtracterRegistry metadataExtracterRegistry)
Sets the Metadata Extractor Registry to be used to decide what extractors existvoid
setMimetypeService(MimetypeService mimetypeService)
Sets the Mimetype Service to be used to get the list of mime types-
Methods inherited from class org.springframework.extensions.webscripts.DeclarativeWebScript
execute, executeFinallyImpl, executeImpl, executeImpl, getTemplateModel, renderFormatTemplate
-
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
-
MODEL_MIMETYPES
public static final String MODEL_MIMETYPES
- See Also:
- Constant Field Values
-
MODEL_EXTENSIONS
public static final String MODEL_EXTENSIONS
- See Also:
- Constant Field Values
-
MODEL_MIMETYPE_DETAILS
public static final String MODEL_MIMETYPE_DETAILS
- See Also:
- Constant Field Values
-
-
Method Detail
-
setMimetypeService
public void setMimetypeService(MimetypeService mimetypeService)
Sets the Mimetype Service to be used to get the list of mime types
-
setLocalTransformServiceRegistry
public void setLocalTransformServiceRegistry(TransformServiceRegistry localTransformServiceRegistry)
-
setMetadataExtracterRegistry
public void setMetadataExtracterRegistry(MetadataExtracterRegistry metadataExtracterRegistry)
Sets the Metadata Extractor Registry to be used to decide what extractors exist
-
executeImpl
protected Map<String,Object> executeImpl(org.springframework.extensions.webscripts.WebScriptRequest req, org.springframework.extensions.webscripts.Status status, org.springframework.extensions.webscripts.Cache cache)
- Overrides:
executeImpl
in classorg.springframework.extensions.webscripts.DeclarativeWebScript
-
getTransformersFrom
protected List<String> getTransformersFrom(String mimetype, long sourceSize, List<String> allMimetypes)
-
getTransformersTo
protected List<String> getTransformersTo(String mimetype, long sourceSize, List<String> allMimetypes)
-
-