OpenShift Java Client 2.5.0.Final

com.openshift.client.utils
Class RFC822DateUtils

java.lang.Object
  extended by com.openshift.client.utils.RFC822DateUtils

public class RFC822DateUtils
extends Object

Author:
André Dietisheim

Constructor Summary
RFC822DateUtils()
           
 
Method Summary
static Date getDate(String rfc822DateString)
          Returns a date instance for a given timestamp string that complies to the RFC 822 standard
static String getString(Date date)
           
static Date safeGetDate(String rfc822DateString)
          Returns a date instance for a given timestamp string that complies to the RFC 822 standard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RFC822DateUtils

public RFC822DateUtils()
Method Detail

getDate

public static Date getDate(String rfc822DateString)
                    throws DatatypeConfigurationException
Returns a date instance for a given timestamp string that complies to the RFC 822 standard

Parameters:
rfc822DateString -
Returns:
Throws:
DatatypeConfigurationException

safeGetDate

public static Date safeGetDate(String rfc822DateString)
Returns a date instance for a given timestamp string that complies to the RFC 822 standard. If an error occurrs, null is returned an no exception is thrown.

Parameters:
rfc822DateString -
Returns:

getString

public static String getString(Date date)
                        throws DatatypeConfigurationException
Throws:
DatatypeConfigurationException

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.