|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.AbstractCommandResponse
org.rhq.enterprise.communications.command.impl.echo.EchoCommandResponse
public class EchoCommandResponse
Encapsulates the results of an echo.
| Constructor Summary | |
|---|---|
EchoCommandResponse(CommandResponse responseToTransform)
Constructor for EchoCommandResponse. |
|
EchoCommandResponse(Command cmd,
String echoMessage)
Constructor for EchoCommandResponse that defines a successfully executed echo command. |
|
EchoCommandResponse(Command cmd,
Throwable exception)
Constructor for EchoCommandResponse that defines a failed echo command. |
|
| Method Summary | |
|---|---|
String |
getEchoMessage()
Provides a strong-typed method that clients can call to obtain the echo message. |
| Methods inherited from class org.rhq.enterprise.communications.command.AbstractCommandResponse |
|---|
getCommand, getException, getResults, isSuccessful, setCommand, setException, setResults, setSuccessful, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EchoCommandResponse(Command cmd,
String echoMessage)
EchoCommandResponse that defines a successfully executed echo command.
cmd - the echo command that was executed (may be null)echoMessage - the message being echoed back to the client
public EchoCommandResponse(Command cmd,
Throwable exception)
EchoCommandResponse that defines a failed echo command.
cmd - the echo command that was executed (may be null)exception - the exception that caused the failure, if available (may be null)public EchoCommandResponse(CommandResponse responseToTransform)
EchoCommandResponse.
AbstractCommandResponse.AbstractCommandResponse(CommandResponse)| Method Detail |
|---|
public String getEchoMessage()
AbstractCommandResponse.getResults() and cast the return value to a String. This method
simply provides a way to help clients avoid that cast and to know exactly what type to expect.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||