001/** 002 * 003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 017 * 018 **/ 019package lucee.runtime.video; 020 021import java.io.IOException; 022 023import lucee.runtime.config.Config; 024import lucee.runtime.config.ConfigWeb; 025import lucee.runtime.type.Struct; 026 027public class VideoExecuterNotSupported implements VideoExecuter { 028 029 /** 030 * @see lucee.runtime.video.VideoExecuter#convertRaw(lucee.runtime.config.ConfigWeb, lucee.runtime.video.VideoInput[], lucee.runtime.video.VideoOutput, lucee.runtime.video.VideoProfile) 031 */ 032 public VideoInfo[] convert(ConfigWeb config, VideoInput[] inputs, VideoOutput output,VideoProfile quality) throws IOException { 033 throw notSupported(); 034 } 035 036 /** 037 * @see lucee.runtime.video.VideoExecuter#infoRaw(lucee.runtime.config.ConfigWeb, lucee.runtime.video.VideoInput) 038 */ 039 public VideoInfo info(ConfigWeb config, VideoInput input) throws IOException { 040 throw notSupported(); 041 } 042 043 /** 044 * @see lucee.runtime.video.VideoExecuter#test(lucee.runtime.config.ConfigWeb) 045 */ 046 public void test(ConfigWeb config) throws IOException { 047 throw notSupported(); 048 } 049 050 /** 051 * @see lucee.runtime.video.VideoExecuter#uninstall(lucee.runtime.config.Config) 052 */ 053 public void uninstall(Config config) throws IOException { 054 throw notSupported(); 055 } 056 057 /** 058 * @see lucee.runtime.video.VideoExecuter#install(lucee.runtime.config.ConfigWeb, lucee.runtime.type.Struct) 059 */ 060 public void install(ConfigWeb config,Struct data) throws IOException { 061 throw notSupported(); 062 } 063 064 private VideoException notSupported() { 065 return new VideoException("The video components are not installed, please go to the Lucee Server Administrator in order to install the video extension"); 066 } 067 068}