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 ofAbstractAwsProfileMapper
. 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
Fields Modifier and Type Field Description static String
SERVICE_NAME
-
Constructor Summary
Constructors Constructor Description TranscoderProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.craftercms.commons.config.profiles.aws.AbstractAwsProfile
createProfile()
protected TranscoderProfile
mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig)
-
-
-
Field Detail
-
SERVICE_NAME
public static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TranscoderProfileMapper
@ConstructorProperties("resolver") public TranscoderProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver)
-
-
Method Detail
-
mapProfile
protected TranscoderProfile mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig) throws org.craftercms.commons.config.ConfigurationException
- Overrides:
mapProfile
in 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:
createProfile
in classorg.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>
-
-