Class DefaultOnDemandConversionFacade
java.lang.Object
de.hybris.platform.mediaconversion.web.facades.DefaultOnDemandConversionFacade
- All Implemented Interfaces:
OnDemandConversionFacade
Standard implementation of
OnDemandConversionFacade.-
Field Summary
FieldsFields inherited from interface de.hybris.platform.mediaconversion.web.facades.OnDemandConversionFacade
BEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendFileExtension(StringBuilder urlBuilder, ConversionMediaFormatModel format) Adds the file extension depending on the formats mime type.protected StringbuildConvertUrl(MediaContainerModel container, ConversionMediaFormatModel format) convert(MediaContainerModel container, ConversionMediaFormatModel format) convert(MediaContainerModel container, String format) Gets the wiredMimeMappingStrategy.retrieveURL(MediaContainerModel container, ConversionMediaFormatModel format) retrieveURL(MediaContainerModel container, String format) voidsetConfigurationService(ConfigurationService configurationService) voidvoidsetMediaConversionService(MediaConversionService mediaConversionService) voidsetMediaService(MediaService mediaService) voidsetMimeMappingStrategy(MimeMappingStrategy mimeMappingStrategy) Sets the wiredMimeMappingStrategyto use.voidsetModelService(ModelService modelService)
-
Field Details
-
DEFAULT_WEBAPP_PATH
Default webapp path. The actual path is retrieved from the configuration.- See Also:
-
-
Constructor Details
-
DefaultOnDemandConversionFacade
public DefaultOnDemandConversionFacade()
-
-
Method Details
-
convert
- Specified by:
convertin interfaceOnDemandConversionFacade- Parameters:
container- theMediaContainerModel'sPKin questionformat- the qualifier of theConversionMediaFormatModelto convert to.- Returns:
- the URL to the requested Media.
-
convert
- Specified by:
convertin interfaceOnDemandConversionFacade- Parameters:
container- theMediaContainerModelin questionformat- theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media
-
convert
- Specified by:
convertin interfaceOnDemandConversionFacade- Parameters:
container- theMediaContainerModelin questionformat- the qualifier of theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media
-
retrieveURL
- Specified by:
retrieveURLin interfaceOnDemandConversionFacade- Parameters:
container- theMediaContainerModelin questionformat- the qualifier of theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media.
-
appendFileExtension
Adds the file extension depending on the formats mime type.- Parameters:
urlBuilder- The string builder containing the url part which has been created beforeformat- TheConversionMediaFormatModel
-
retrieveURL
- Specified by:
retrieveURLin interfaceOnDemandConversionFacade- Parameters:
container- theMediaContainerModelin questionformat- the qualifier of theConversionMediaFormatModelto convert to ornull(or the empty string) to retrieve the container's master media url.- Returns:
- the URL to the requested Media
-
buildConvertUrl
-
getMediaService
-
setMediaService
-
getConfigurationService
-
setConfigurationService
-
getModelService
-
setModelService
-
getConversionServletPath
-
setConversionServletPath
-
getMediaConversionService
-
setMediaConversionService
-
getMimeMappingStrategy
Gets the wiredMimeMappingStrategy.- Returns:
- The wired strategy.
-
setMimeMappingStrategy
Sets the wiredMimeMappingStrategyto use.- Parameters:
mimeMappingStrategy- The strategy to use
-