1 23 24 package com.sun.enterprise.admin.common.constant; 25 26 import com.sun.enterprise.admin.util.HostAndPort; 27 28 import com.sun.enterprise.admin.util.SOMLocalStringsManager; 30 31 33 public final class AdminConstants 34 { 35 public static final String kAdminServletURI = "web1/entry"; 36 public static final String kHttpPrefix = "http://"; 37 public static final String kHttpsPrefix = "https://"; 38 public static final int kTypeWebModule = 0; 39 public static final int kTypeEjbModule = 1; 40 41 public static final int kDebugMode = 0; 42 public static final int kNonDebugMode = 1; 43 44 public static final String CLIENT_VERSION = "clientVersion"; 45 public static final String OBJECT_NAME = "objectName"; 46 public static final String OPERATION_NAME = "operationName"; 47 public static final String OPERATION_SIGNATURE = "signature"; 48 public static final String OPERATION_PARAMS = "params"; 49 public static final String EXCEPTION = "exception"; 50 public static final String RETURN_VALUE = "returnValue"; 51 public static final String ATTRIBUTE_NAME = "attributeName"; 52 public static final String ATTRIBUTE = "jmxAttribute"; 53 public static final String ATTRIBUTE_LIST = "jmxAttributeList"; 54 public static final String ATTRIBUTE_NAMES = "attributeNames"; 55 public static final String CLIENT_JAR = "Client.jar"; 56 57 58 62 public static final String kLoggerName = 63 "javax.enterprise.system.tools.admin"; 64 65 private static SOMLocalStringsManager localizedStrMgr = 67 SOMLocalStringsManager.getManager( AdminConstants.class ); 68 69 70 71 public static final String DOMAIN_ADMIN_GROUP_NAME = "asadmin"; 72 74 75 public static String getProtocolString(HostAndPort hp) 76 { 77 if (hp == null) 78 { 79 String msg = localizedStrMgr.getString( "admin.common.null_host_port" ); 80 throw new IllegalArgumentException ( msg ); 81 } 82 return ( (hp.isSecure() ? kHttpsPrefix : kHttpPrefix) + hp.toString() ); 83 } 84 } 85 | Popular Tags |