org.jclouds.io
Class ContentMetadataBuilder

java.lang.Object
  extended by org.jclouds.io.ContentMetadataBuilder
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BaseMutableContentMetadata

public class ContentMetadataBuilder
extends Object
implements Serializable

Author:
Adrian Cole
See Also:
Serialized Form

Field Summary
protected  String contentDisposition
           
protected  String contentEncoding
           
protected  String contentLanguage
           
protected  Long contentLength
           
protected  byte[] contentMD5
           
protected  String contentType
           
 
Constructor Summary
ContentMetadataBuilder()
           
 
Method Summary
 ContentMetadata build()
           
 ContentMetadataBuilder contentDisposition(String contentDisposition)
           
 ContentMetadataBuilder contentEncoding(String contentEncoding)
           
 ContentMetadataBuilder contentLanguage(String contentLanguage)
           
 ContentMetadataBuilder contentLength(Long contentLength)
           
 ContentMetadataBuilder contentMD5(byte[] md5)
           
 ContentMetadataBuilder contentType(String contentType)
           
static ContentMetadataBuilder create()
           
 boolean equals(Object obj)
           
static ContentMetadataBuilder fromContentMetadata(ContentMetadata in)
           
 ContentMetadataBuilder fromHttpHeaders(com.google.common.collect.Multimap<String,String> headers)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

contentType

protected String contentType

contentLength

protected Long contentLength

contentMD5

protected byte[] contentMD5

contentDisposition

protected String contentDisposition

contentLanguage

protected String contentLanguage

contentEncoding

protected String contentEncoding
Constructor Detail

ContentMetadataBuilder

public ContentMetadataBuilder()
Method Detail

create

public static ContentMetadataBuilder create()

fromHttpHeaders

public ContentMetadataBuilder fromHttpHeaders(com.google.common.collect.Multimap<String,String> headers)

contentLength

public ContentMetadataBuilder contentLength(@Nullable
                                            Long contentLength)

contentMD5

public ContentMetadataBuilder contentMD5(byte[] md5)

contentType

public ContentMetadataBuilder contentType(@Nullable
                                          String contentType)

contentDisposition

public ContentMetadataBuilder contentDisposition(@Nullable
                                                 String contentDisposition)

contentLanguage

public ContentMetadataBuilder contentLanguage(@Nullable
                                              String contentLanguage)

contentEncoding

public ContentMetadataBuilder contentEncoding(@Nullable
                                              String contentEncoding)

build

public ContentMetadata build()

fromContentMetadata

public static ContentMetadataBuilder fromContentMetadata(ContentMetadata in)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2011 jclouds. All Rights Reserved.