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