org.javaswift.joss.headers
Class DateHeader

java.lang.Object
  extended by org.javaswift.joss.headers.Header
      extended by org.javaswift.joss.headers.DateHeader
Direct Known Subclasses:
AbstractIfSince, DeleteAt, ObjectLastModified, ServerDate

public abstract class DateHeader
extends Header


Constructor Summary
DateHeader(Date date)
           
DateHeader(Long milliseconds)
           
DateHeader(String date)
           
 
Method Summary
static String convertDateToString(Date date)
           
static Date convertStringToDate(String sinceDate)
           
 Date getDate()
           
 
Methods inherited from class org.javaswift.joss.headers.Header
convertResponseHeader, getHeaderName, getHeaderValue, getResponseHeadersStartingWith, headerNotEmpty, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateHeader

public DateHeader(Long milliseconds)

DateHeader

public DateHeader(String date)
           throws org.apache.http.impl.cookie.DateParseException
Throws:
org.apache.http.impl.cookie.DateParseException

DateHeader

public DateHeader(Date date)
Method Detail

convertStringToDate

public static Date convertStringToDate(String sinceDate)
                                throws org.apache.http.impl.cookie.DateParseException
Throws:
org.apache.http.impl.cookie.DateParseException

convertDateToString

public static String convertDateToString(Date date)

getDate

public Date getDate()


Copyright © 2012-2014 42 BV. All Rights Reserved.