|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oozie.client.rest.JsonUtils
public class JsonUtils
Json utils methods.
Constructor Summary | |
---|---|
JsonUtils()
|
Method Summary | |
---|---|
static String |
formatDateRfc822(Date date)
Format a Date in RFC822 GMT. |
static List<String> |
getListString(org.json.simple.JSONObject json,
String name)
Return a List |
static long |
getLongValue(org.json.simple.JSONObject map,
String name)
Return a long value from a JSONObject. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonUtils()
Method Detail |
---|
public static String formatDateRfc822(Date date)
date
- date to format.
null
if the date was null.
public static long getLongValue(org.json.simple.JSONObject map, String name)
map
- JSON object.name
- name of the property.
public static List<String> getListString(org.json.simple.JSONObject json, String name)
map
- JSON object.name
- name of the property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |