001/**
002 * Copyright 2015 Tampere University of Technology, Pori Department
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 *   http://www.apache.org/licenses/LICENSE-2.0
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package service.tut.pori.subtitles;
017
018/**
019 * Subtitles service definitions
020 * 
021 */
022public final class Definitions {
023
024  /* services */
025  /** service name declaration */
026  public static final String SERVICE_SUBS = "subs";
027  
028  /* methods */
029  /** service method declaration */
030  public static final String METHOD_GENERATE_SUBTITLES = "getSubtitles";
031  
032  /* parameters */
033  /** service method parameter declaration */
034  public static final String PARAMETER_FILE_FORMAT = "file_format";
035  /** service method parameter declaration */
036  public static final String PARAMETER_SUBTITLE_FORMAT = "subtitle_format";
037  
038  /* common */
039  /** content type as defined by <a href="http://dev.w3.org/html5/webvtt/#webvtt-file-structure">WebVTT: The Web Video Text Tracks Format</a> */
040  public static final String CONTENT_TYPE_WEBVTT = "text/vtt";
041  
042  /* file formats */
043  /** file format string for WebVTT <a href="http://dev.w3.org/html5/webvtt">WebVTT: The Web Video Text Tracks Format</a> */
044  public static final String FILE_FORMAT_WEBVTT = "WEBVTT";
045  
046  /* subtitle formats */
047  /** subtitle format for grouped media objects */
048  public static final String SUBTITLE_FORMAT_GROUPED = "GROUPED";
049  /** subtitle format for individual media objects */
050  public static final String SUBTITLE_FORMAT_INDIVIDUAL = "INDIVIDUAL";
051  
052  /**
053   * 
054   */
055  private Definitions(){
056    // nothing needed
057  }
058}