org.javaswift.joss.headers.account
Class ServerDate

java.lang.Object
  extended by org.javaswift.joss.headers.Header
      extended by org.javaswift.joss.headers.DateHeader
          extended by org.javaswift.joss.headers.account.ServerDate

public class ServerDate
extends DateHeader


Field Summary
static String DATE
           
 
Constructor Summary
ServerDate(Date date)
           
ServerDate(Long milliseconds)
           
ServerDate(String date)
           
 
Method Summary
static ServerDate fromResponse(org.apache.http.HttpResponse response)
           
 String getHeaderName()
          Returns the header name that must be set in the request.
 String getHeaderValue()
          Returns the value that must be set in the request.
 
Methods inherited from class org.javaswift.joss.headers.DateHeader
convertDateToString, convertStringToDate, getDate
 
Methods inherited from class org.javaswift.joss.headers.Header
convertResponseHeader, getResponseHeadersStartingWith, headerNotEmpty, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE

public static String DATE
Constructor Detail

ServerDate

public ServerDate(Long milliseconds)

ServerDate

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

ServerDate

public ServerDate(Date date)
Method Detail

getHeaderValue

public String getHeaderValue()
Description copied from class: Header
Returns the value that must be set in the request. Eg, "bytes: 4-12"

Specified by:
getHeaderValue in class Header
Returns:
the value for the request header

getHeaderName

public String getHeaderName()
Description copied from class: Header
Returns the header name that must be set in the request. Eg, "Range"

Specified by:
getHeaderName in class Header
Returns:
the name for the request header

fromResponse

public static ServerDate fromResponse(org.apache.http.HttpResponse response)


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