Interface ContentMetadataCodec

All Known Implementing Classes:
ContentMetadataCodec.DefaultContentMetadataCodec

public interface ContentMetadataCodec
  • Method Details

    • toHeaders

      com.google.common.collect.Multimap<String,String> toHeaders(ContentMetadata md)
      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 in ContentMetadata.HTTP_HEADERS
    • parseExpires

      Date parseExpires(String expires)
      Parses the 'Expires' header. If invalid, returns a date in the past (in accordance with HTTP 1.1 client spec).