public static class ContentMetadataCodec.DefaultContentMetadataCodec extends Object implements ContentMetadataCodec
ContentMetadataCodec.DefaultContentMetadataCodec
Constructor and Description |
---|
ContentMetadataCodec.DefaultContentMetadataCodec(DateCodecFactory dateCodecs) |
Modifier and Type | Method and Description |
---|---|
void |
fromHeaders(MutableContentMetadata contentMetadata,
com.google.common.collect.Multimap<String,String> headers)
Sets properties related to the http headers listed in
ContentMetadata.HTTP_HEADERS |
protected DateCodec |
getExpiresDateCodec() |
Date |
parseExpires(String expires)
Parses the 'Expires' header.
|
com.google.common.collect.Multimap<String,String> |
toHeaders(ContentMetadata md)
Generates standard HTTP headers for the give metadata.
|
protected Logger logger
@Inject public ContentMetadataCodec.DefaultContentMetadataCodec(DateCodecFactory dateCodecs)
protected DateCodec getExpiresDateCodec()
public com.google.common.collect.Multimap<String,String> toHeaders(ContentMetadata md)
ContentMetadataCodec
toHeaders
in interface ContentMetadataCodec
public void fromHeaders(MutableContentMetadata contentMetadata, com.google.common.collect.Multimap<String,String> headers)
ContentMetadataCodec
ContentMetadata.HTTP_HEADERS
fromHeaders
in interface ContentMetadataCodec
public Date parseExpires(String expires)
ContentMetadataCodec
parseExpires
in interface ContentMetadataCodec
Copyright © 2009-2013 jclouds. All Rights Reserved.