org.javaswift.joss.headers.object
Class Etag

java.lang.Object
  extended by org.javaswift.joss.headers.Header
      extended by org.javaswift.joss.headers.SimpleHeader
          extended by org.javaswift.joss.headers.object.Etag

public class Etag
extends SimpleHeader

Sets the MD5 hash on an object. The server uses this hash to verify that the upload succeeded


Field Summary
static String ETAG
           
 
Constructor Summary
Etag(InputStream inputStream)
           
Etag(String md5)
           
 
Method Summary
static Etag fromResponse(org.apache.http.HttpResponse response)
           
 String getHeaderName()
          Returns the header name that must be set in the request.
 
Methods inherited from class org.javaswift.joss.headers.SimpleHeader
getHeaderValue
 
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

ETAG

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

Etag

public Etag(String md5)

Etag

public Etag(InputStream inputStream)
     throws IOException
Throws:
IOException
Method Detail

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 Etag fromResponse(org.apache.http.HttpResponse response)


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