public class Instance extends Object
| Constructor and Description |
|---|
Instance() |
Instance(int status,
String content) |
Instance(int status,
String content,
String message) |
| Modifier and Type | Method and Description |
|---|---|
Error |
getError()
Return an Error object with the error that have occurred or null.
|
int |
getStatus() |
boolean |
isOk()
Check if this is instance is correct.
|
void |
setError(Error error)
Set an Error object.
|
void |
setStatus(int status) |
String |
toXML()
Map a Token instance to its XML representation.
|
public Instance()
public Instance(int status,
String content)
public boolean isOk()
public Error getError()
public void setError(Error error)
public int getStatus()
public void setStatus(int status)
public String toXML()
Copyright © 2019. All rights reserved.