@Override public String toString() { return "ParamModelData: name=" + name + ", type=" + type + ", i18n=" + getLocalizedDescription() + ", param=" + param.toString(); } }
/** * Return a CommandModel that only includes the --help option. */ private CommandModel helpModel() { CommandModelData cm = new CommandModelData(name); cm.add(new ParamModelData("help", boolean.class, true, "false", "?")); return cm; }
char decodeUnicodeSequence() throws MalformedUnicodeSequenceException { int value = 0; try { for (int i = 0; i < 4; ++i) { value = (value << 4) | hexValue(nextChar()); } } catch (Exception e) { throw new MalformedUnicodeSequenceException(""); } return ((char) value); }
public static ActionReport.ExitCode replicateCommand(String commandName, FailurePolicy failPolicy, FailurePolicy offlinePolicy, FailurePolicy neverStartedPolicy, List<Server> instancesForReplication, AdminCommandContext context, ParameterMap parameters, ServiceLocator habitat) { return replicateCommand(commandName, failPolicy, offlinePolicy, neverStartedPolicy, instancesForReplication, context, parameters, habitat, null); }
boolean isEscapableChar( char theChar ) { return( isCallerProvidedEscapableChar( theChar ) || isSpecialEscapeChar( theChar ) ); }
public String getETag() { if (eTag == null) { eTag = computeETag(this); } return eTag; }
private AppserverServiceType getType() { if (selector.isInstance()) return AppserverServiceType.Instance; else return AppserverServiceType.Domain; } }
@Override public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) { if (callbackHandler instanceof AdminCallbackHandler) { ServiceLocator sl = ((AdminCallbackHandler) callbackHandler).getServiceLocator(); findServices(sl); } this.subject = subject; this.callbackHandler = callbackHandler; }
/** * get the protocol prefix to be used for a connection for the * receiver * @return the protocol prefix - one of <code>http</code> or *<code>https</code> depending upon the security setting. */ public String getConnectorType() { return this.isSecure() ? HTTPS_CONNECTOR : HTTP_CONNECTOR; }
/** * Returns KeyManagers which access the SSL key store for use in * performing client cert authentication. The returned KeyManagers will * most likely be passed to {@link SSLContext.init }. * @return KeyManagers */ public static KeyManager[] getKeyManagers() { return (instance == null ? null : instance.keyManagers()); }
public InstanceStateFileProcessor(HashMap<String, InstanceState> st, File xmlFile) throws IOException { instanceStates = st; stateFile = xmlFile; parse(); }
public static Byte [] toBytes( byte [] array ) { return( (Byte [])convert( array ) ); }
private synchronized Map<String,String> headers() { if (headers == null) { headers = headers(request); } return headers; } private String header(final String headerName) {
/** * Return a CommandModel that only includes the --help option. */ private CommandModel helpModel() { CommandModelData cm = new CommandModelData(name); cm.add(new ParamModelData("help", boolean.class, true, "false", "?")); return cm; }
public static ActionReport.ExitCode replicateCommand(String commandName, FailurePolicy failPolicy, FailurePolicy offlinePolicy, List<Server> instancesForReplication, AdminCommandContext context, ParameterMap parameters, Habitat habitat) { return replicateCommand(commandName, failPolicy, offlinePolicy, instancesForReplication, context, parameters, habitat, null); }
@Override public String toString() { return "ParamModelData: name=" + name + ", type=" + type + ", i18n=" + getLocalizedDescription() + ", param=" + param.toString(); } }
public static Double [] toDoubles( double [] array ) { return( (Double [])convert( array ) ); }
public static ActionReport.ExitCode replicateCommand(String commandName, FailurePolicy failPolicy, FailurePolicy offlinePolicy, Collection<String> targetNames, AdminCommandContext context, ParameterMap parameters, Habitat habitat) { return replicateCommand(commandName, failPolicy, offlinePolicy, targetNames, context, parameters, habitat, null); }