public class Token extends Instance implements Formattable
| Modifier and Type | Field and Description |
|---|---|
static String |
VALID_TOKEN_MESSAGE |
| Constructor and Description |
|---|
Token() |
Token(int status,
String content,
String message) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isOk()
Check if this is token is correct.
|
String |
toJSON() |
Map<String,String> |
toMap()
Map a Token instance to its Java's Map representation.
|
String |
toXML()
Map a Token instance to its XML representation.
|
public static final String VALID_TOKEN_MESSAGE
public boolean isOk()
public String toXML()
toXML in interface Formattablepublic Map<String,String> toMap()
toMap in interface Formattablepublic String toJSON()
toJSON in interface FormattableCopyright © 2017. All rights reserved.