示例#1
0
 public FilePollingTmProvider(String archiveInstance, String name) throws ConfigurationException {
   this(
       archiveInstance,
       name,
       YConfiguration.getConfiguration("yamcs").getString("incomingDir")
           + File.separator
           + archiveInstance
           + File.separator
           + "tm");
 }
  public static void init() throws ConfigurationException {
    if (mimeTypesMap != null) return;

    InputStream is =
        Thread.currentThread().getContextClassLoader().getResourceAsStream("mime.types");
    if (is == null) {
      throw new ConfigurationException("Cannot find the mime.types file in the classpath");
    }
    mimeTypesMap = new MimetypesFileTypeMap(is);
    WEB_Root = YConfiguration.getConfiguration("yamcs").getString("webRoot");
  }