org.javaswift.joss.headers.object
Class ObjectLastModified

java.lang.Object
  extended by org.javaswift.joss.headers.Header
      extended by org.javaswift.joss.headers.DateHeader
          extended by org.javaswift.joss.headers.object.ObjectLastModified

public class ObjectLastModified
extends DateHeader


Field Summary
static String LAST_MODIFIED
           
 
Constructor Summary
ObjectLastModified(Date value)
           
ObjectLastModified(Long value)
           
ObjectLastModified(String value)
           
 
Method Summary
static ObjectLastModified 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

LAST_MODIFIED

public static final String LAST_MODIFIED
See Also:
Constant Field Values
Constructor Detail

ObjectLastModified

public ObjectLastModified(Long value)

ObjectLastModified

public ObjectLastModified(String value)
                   throws org.apache.http.impl.cookie.DateParseException
Throws:
org.apache.http.impl.cookie.DateParseException

ObjectLastModified

public ObjectLastModified(Date value)
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 ObjectLastModified fromResponse(org.apache.http.HttpResponse response)


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