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)
ContentMetadataCodectoHeaders in interface ContentMetadataCodecpublic void fromHeaders(MutableContentMetadata contentMetadata, com.google.common.collect.Multimap<String,String> headers)
ContentMetadataCodecContentMetadata.HTTP_HEADERSfromHeaders in interface ContentMetadataCodecpublic Date parseExpires(String expires)
ContentMetadataCodecparseExpires in interface ContentMetadataCodecCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.