Class TranscoderProfileMapper

java.lang.Object
org.craftercms.commons.config.profiles.AbstractProfileConfigMapper<TranscoderProfile>
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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class org.craftercms.commons.config.profiles.AbstractProfileConfigMapper

    configurationResolver, serviceName
  • Constructor Summary

    Constructors
    Constructor
    Description
    TranscoderProfileMapper(org.craftercms.commons.config.ConfigurationResolver resolver)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.craftercms.commons.config.profiles.aws.AbstractAwsProfile
     
    mapProfile(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> profileConfig)
     

    Methods inherited from class org.craftercms.commons.config.profiles.AbstractProfileConfigMapper

    processConfig, readConfig

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • 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:
      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>