Exemplo n.º 1
0
 /** Returns the folder where the HTTP Monitor jar files should be placed */
 public File getMonitorLibFolder() {
   if (tm.isBundledTomcat()) {
     return new File(baseDir, "nblib"); // NOI18N
   }
   return tm.isTomcat60() || tm.isTomcat70()
       ? new File(homeDir, "lib") // NOI18N
       : new File(homeDir, "common/lib"); // NOI18N
 }
Exemplo n.º 2
0
 public int getShutdownPort() {
   String val = ip.getProperty(PROP_SHUTDOWN);
   if (val != null) {
     try {
       int port = Integer.parseInt(val);
       if (port >= 0 && port <= 65535) {
         return port;
       }
     } catch (NumberFormatException nfe) {
       Logger.getLogger(TomcatProperties.class.getName()).log(Level.INFO, null, nfe);
     }
   }
   return tm.isBundledTomcat() ? DEF_VALUE_BUNDLED_SHUTDOWN_PORT : DEF_VALUE_SHUTDOWN_PORT;
 }
Exemplo n.º 3
0
  public int getDebugPort() {
    String val = ip.getProperty(PROP_DEBUG_PORT);

    if (val != null) {
      try {
        return Integer.parseInt(val);
      } catch (NumberFormatException nfe) {
        Logger.getLogger(TomcatProperties.class.getName()).log(Level.INFO, null, nfe);
      }
    }

    if (tm.isBundledTomcat()) {
      return DEF_VALUE_DEBUG_PORT_BUNDLED;
    } else {
      return DEF_VALUE_DEBUG_PORT;
    }
  }