org.jclouds.io
Class ContentMetadataBuilder
java.lang.Object
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
contentType
protected String contentType
contentLength
protected Long contentLength
contentMD5
protected byte[] contentMD5
contentDisposition
protected String contentDisposition
contentLanguage
protected String contentLanguage
contentEncoding
protected String contentEncoding
ContentMetadataBuilder
public ContentMetadataBuilder()
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.