1 19 20 package org.netbeans.modules.test.serverplugins.jboss; 21 22 import java.io.File ; 23 import org.netbeans.modules.test.serverplugins.api.ConstantsProvider; 24 25 30 public class JBossConstantsProvider implements ConstantsProvider { 31 32 private static final String DISPLAY_NAME = "JBoss Application Server"; 33 private static final String SERVER_ROOT = System.getProperty("jboss.server.path"); 34 private static final String HOST = "localhost"; 35 private static final String PORT = "8080"; 36 private static final String DOMAIN = "default"; 37 private static final String SERVER_URI = "jboss-deployer:" + HOST + ":" + PORT 38 + "#" + DOMAIN + "&" + SERVER_ROOT; 39 private static final String USERNAME = "admin"; 40 private static final String PASSWORD = "admin"; 41 42 public String getDisplayName() { 43 return DISPLAY_NAME; 44 } 45 46 public String getServerRoot() { 47 return SERVER_ROOT; 48 } 49 50 public String getHost() { 51 return HOST; 52 } 53 54 public String getPort() { 55 return PORT; 56 } 57 58 public String getServerURI() { 59 return SERVER_URI; 60 } 61 62 public String getUsername() { 63 return USERNAME; 64 } 65 66 public String getPassword() { 67 return PASSWORD; 68 } 69 70 75 public String getDomain() { 76 return DOMAIN; 77 } 78 79 84 public String getDomainRoot() { 85 return getServerRoot() + File.separator + "server"+ File.separator + getDomain(); 86 } 87 } | Popular Tags |