001    package railo.runtime.video;
002    
003    import java.io.IOException;
004    
005    import railo.runtime.config.Config;
006    import railo.runtime.config.ConfigWeb;
007    import railo.runtime.type.Struct;
008    
009    public class VideoExecuterNotSupported implements VideoExecuter {
010    
011            /**
012             * @see railo.runtime.video.VideoExecuter#convertRaw(railo.runtime.config.ConfigWeb, railo.runtime.video.VideoInput[], railo.runtime.video.VideoOutput, railo.runtime.video.VideoProfile)
013             */
014            public VideoInfo[] convert(ConfigWeb config, VideoInput[] inputs, VideoOutput output,VideoProfile quality) throws IOException {
015                    throw notSupported();
016            }
017    
018            /**
019             * @see railo.runtime.video.VideoExecuter#infoRaw(railo.runtime.config.ConfigWeb, railo.runtime.video.VideoInput)
020             */
021            public VideoInfo info(ConfigWeb config, VideoInput input) throws IOException {
022                    throw notSupported();
023            }
024    
025            /**
026             * @see railo.runtime.video.VideoExecuter#test(railo.runtime.config.ConfigWeb)
027             */
028            public void test(ConfigWeb config) throws IOException {
029                    throw notSupported();
030            }
031    
032            /**
033             * @see railo.runtime.video.VideoExecuter#uninstall(railo.runtime.config.Config)
034             */
035            public void uninstall(Config config) throws IOException {
036                    throw notSupported();
037            }
038    
039            /**
040             * @see railo.runtime.video.VideoExecuter#install(railo.runtime.config.ConfigWeb, railo.runtime.type.Struct)
041             */
042            public void install(ConfigWeb config,Struct data) throws IOException {
043                    throw notSupported();
044            }
045    
046            private VideoException notSupported() {
047                    return new VideoException("The video components are not installed, please go to the Railo Server Administrator in order to install the video extension");
048            }
049    
050    }