|
OpenNebula Cloud API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennebula.client.OneResponse
public class OneResponse
This class encapsulates OpenNebula's XML-RPC responses. Each response carries a boolean indicating if it is an error. It can also contain a success message, or an error message.
| Constructor Summary | |
|---|---|
OneResponse(boolean success,
java.lang.String message)
Creates a new response. |
|
| Method Summary | |
|---|---|
java.lang.String |
getErrorMessage()
Returns a string containing the error message, or null if the response isn't an error. |
java.lang.String |
getMessage()
Returns a string containing the response information, or null if the response was an error. |
boolean |
isError()
Returns true if the call resulted in error. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OneResponse(boolean success,
java.lang.String message)
success - Indicates if the call was successful, and if
the message is an error or an information string.message - String containing the response message, or
the error message.| Method Detail |
|---|
public boolean isError()
public java.lang.String getErrorMessage()
public java.lang.String getMessage()
|
OpenNebula Cloud API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||