Package org.jclouds.io
Interface ContentMetadataCodec
- All Known Implementing Classes:
ContentMetadataCodec.DefaultContentMetadataCodec
public interface ContentMetadataCodec
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Default implementation, in accordance with HTTP 1.1 spec. -
Method Summary
Modifier and TypeMethodDescriptionvoid
fromHeaders
(MutableContentMetadata contentMetadata, com.google.common.collect.Multimap<String, String> headers) Sets properties related to the http headers listed inContentMetadata.HTTP_HEADERS
parseExpires
(String expires) Parses the 'Expires' header.Generates standard HTTP headers for the give metadata.
-
Method Details
-
toHeaders
Generates standard HTTP headers for the give metadata. -
fromHeaders
void fromHeaders(MutableContentMetadata contentMetadata, com.google.common.collect.Multimap<String, String> headers) Sets properties related to the http headers listed inContentMetadata.HTTP_HEADERS
-
parseExpires
Parses the 'Expires' header. If invalid, returns a date in the past (in accordance with HTTP 1.1 client spec).
-