org.apache.oozie.client.rest
Class JsonUtils

java.lang.Object
  extended by org.apache.oozie.client.rest.JsonUtils

public class JsonUtils
extends Object

Json utils methods.


Constructor Summary
JsonUtils()
           
 
Method Summary
static String formatDateRfc822(Date date)
          Format a Date in RFC822 GMT.
static String formatDateRfc822(Date date, String timeZoneId)
          Format a Date in RFC822 with the given time zone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonUtils

public JsonUtils()
Method Detail

formatDateRfc822

public static String formatDateRfc822(Date date,
                                      String timeZoneId)
Format a Date in RFC822 with the given time zone.

Parameters:
date - date to format.
timeZoneId - the time zone to use
Returns:
RFC822 for the date, null if the date was null.

formatDateRfc822

public static String formatDateRfc822(Date date)
Format a Date in RFC822 GMT.

Parameters:
date - date to format.
Returns:
RFC822 GMT for the date, null if the date was null.


Copyright © 2013 Apache Software Foundation. All Rights Reserved.