Class TranscoderProfileMapper
java.lang.Object
org.craftercms.commons.config.profiles.AbstractProfileConfigMapper<T>
org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>
org.craftercms.studio.impl.v1.aws.elastictranscoder.TranscoderProfileMapper
- All Implemented Interfaces:
org.craftercms.commons.config.ConfigurationMapper<TranscoderProfile>
public class TranscoderProfileMapper
extends org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>
ElasticTranscoder implementation of
AbstractAwsProfileMapper. It uses Apache Commons Configuration to read an XML
transcoder profile like the following:
<profile>
<id>xxxxx</id>
<credentials>
<accessKey>XXXXXXXXXXXXXXXXXXXX</accessKey>
<secretKey>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</secretKey>
</credentials>
<region>us-east-1</region>
<pipelineId>00000000000000000000</pipelineId>
<outputs>
<output>
<presetId>00000000000000000000</presetId>
<outputKeySuffix>-small.mp4</outputKeySuffix>
</output>
<output>
<presetId>00000000000000000000</presetId>
<outputKeySuffix>-medium.mp4</outputKeySuffix>
</output>
<output>
<presetId>00000000000000000000</presetId>
<outputKeySuffix>-large.mp4</outputKeySuffix>
</output>
</outputs>
</profile>
-
Field Summary
FieldsFields inherited from class org.craftercms.commons.config.profiles.AbstractProfileConfigMapper
configurationResolver, serviceName -
Constructor Summary
ConstructorsConstructorDescriptionTranscoderProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.craftercms.commons.config.profiles.aws.AbstractAwsProfileprotected TranscoderProfilemapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig) Methods inherited from class org.craftercms.commons.config.profiles.AbstractProfileConfigMapper
processConfig, readConfig
-
Field Details
-
SERVICE_NAME
- See Also:
-
-
Constructor Details
-
TranscoderProfileMapper
@ConstructorProperties("resolver") public TranscoderProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver)
-
-
Method Details
-
mapProfile
protected TranscoderProfile mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig) throws org.craftercms.commons.config.ConfigurationException - Overrides:
mapProfilein classorg.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>- Throws:
org.craftercms.commons.config.ConfigurationException
-
createProfile
protected org.craftercms.commons.config.profiles.aws.AbstractAwsProfile createProfile()- Specified by:
createProfilein classorg.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>
-