public class OneResponse
extends java.lang.Object
Constructor and Description |
---|
OneResponse(boolean success,
java.lang.String message)
Creates a new response.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorMessage()
Returns a string containing the error message, or null
if the response isn't an error.
|
int |
getIntMessage()
Parses the string returned by getMessage
|
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.
|
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.public boolean isError()
public java.lang.String getErrorMessage()
public java.lang.String getMessage()
public int getIntMessage()
getMessage()
Visit OpenNebula.org
Copyright 2002-2013 ©
OpenNebula Project (OpenNebula.org), C12G Labs.