public class ReplyObject extends Object
| Constructor and Description |
|---|
ReplyObject()
Creates a new empty result object.
|
ReplyObject(String name,
Object result)
Creates a new result object with one result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(String name,
Object result)
Adds
|
static ReplyObject |
error(String message)
Factory method that creates a new erroneous reply object.
|
String |
getMessage() |
HashMap |
getResults() |
boolean |
isSuccessful() |
static ReplyObject |
success()
Factory method that creates a new reply object for successful request.
|
static ReplyObject |
success(String name,
Object result)
Factory method that creates a new reply object for successful request.
|
String |
toString() |
public static ReplyObject success(String name, Object result)
name - result - public static ReplyObject success()
public static ReplyObject error(String message)
message - public boolean isSuccessful()
public String getMessage()
public HashMap getResults()
Copyright © 2010-2015 anotheria.net. All Rights Reserved.