Class 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

      Fields 
      Modifier and Type Field Description
      static String SERVICE_NAME  
      • Fields inherited from class org.craftercms.commons.config.profiles.AbstractProfileConfigMapper

        configurationResolver, serviceName
    • Constructor Summary

      Constructors 
      Constructor Description
      TranscoderProfileMapper​(org.craftercms.commons.config.ConfigurationResolver resolver)  
    • 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 class org.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 class org.craftercms.commons.config.profiles.aws.AbstractAwsProfileMapper<TranscoderProfile>