private void setName() { name = displayInProperLen(response.getMainMessage()); }
private void setName() { name = displayInProperLen(response.getMainMessage()); }
private void processGeneric() throws RemoteSuccessException, RemoteFailureException { StringBuilder sb = new StringBuilder(); String msg = response.getMainMessage(); if(ok(msg)) { sb.append(msg); } boolean useMainChildrenAttr = Boolean.valueOf(response.getMainAtts().get("use-main-children-attribute")); if (useMainChildrenAttr) { sb = processMainChildrenAttribute(response.getMainAtts(), sb); } else { processOneLevel("", null, response.getMainAtts(), sb); } if (response.wasFailure()) { final String cause = response.getCause(); if(ok(cause)){ if (logger.isLoggable(Level.FINER)) { if (sb.length() > 0) sb.append(EOL); sb.append(cause); } throw new RemoteFailureException(sb.toString(), cause); } throw new RemoteFailureException(sb.toString()); } throw new RemoteSuccessException(sb.toString()); }
private void processGeneric() throws RemoteSuccessException, RemoteFailureException { StringBuilder sb = new StringBuilder(); String msg = response.getMainMessage(); if(ok(msg)) { sb.append(msg); } boolean useMainChildrenAttr = Boolean.valueOf(response.getMainAtts().get("use-main-children-attribute")); if (useMainChildrenAttr) { sb = processMainChildrenAttribute(response.getMainAtts(), sb); } else { processOneLevel("", null, response.getMainAtts(), sb); } if (response.wasFailure()) { final String cause = response.getCause(); if(ok(cause)){ if (logger.isLoggable(Level.FINER)) { if (sb.length() > 0) sb.append(EOL); sb.append(cause); } throw new RemoteFailureException(sb.toString(), cause); } throw new RemoteFailureException(sb.toString()); } throw new RemoteSuccessException(sb.toString()); }
public void process() throws RemoteException { String usageText = response.getValue(AdminCommandResponse.SYNOPSIS); if(usageText == null) { // this is one way to figure out there was an error! throw new RemoteFailureException("XXXXXXXXXXXXXXXXXXXX", response.getMainMessage()); } setName(); setSynopsis(); setParamsAndOperands(); StringBuilder sb = new StringBuilder(); sb.append(EOL); printName(sb); printSynopsis(sb); printParams(sb); printOperands(sb); throw new RemoteSuccessException(sb.toString()); }
public void process() throws RemoteException { String usageText = response.getValue(AdminCommandResponse.SYNOPSIS); if(usageText == null) { // this is one way to figure out there was an error! throw new RemoteFailureException("XXXXXXXXXXXXXXXXXXXX", response.getMainMessage()); } setName(); setSynopsis(); setParamsAndOperands(); StringBuilder sb = new StringBuilder(); sb.append(EOL); printName(sb); printSynopsis(sb); printParams(sb); printOperands(sb); throw new RemoteSuccessException(sb.toString()); }