Class CacheDirectiveReader


  • public class CacheDirectiveReader
    extends HeaderReader<org.restlet.data.CacheDirective>
    Cache directive header reader.
    Author:
    Jerome Louvel
    • Constructor Detail

      • CacheDirectiveReader

        public CacheDirectiveReader​(java.lang.String header)
        Constructor.
        Parameters:
        header - The header to read.
    • Method Detail

      • addValues

        public static void addValues​(org.restlet.data.Header header,
                                     java.util.Collection<org.restlet.data.CacheDirective> collection)
        Adds values to the given collection.
        Parameters:
        header - The header to read.
        collection - The collection to update.
      • readValue

        public org.restlet.data.CacheDirective readValue()
                                                  throws java.io.IOException
        Description copied from class: HeaderReader
        Read the next value. There can be multiple values for a single header. Returns null by default.
        Overrides:
        readValue in class HeaderReader<org.restlet.data.CacheDirective>
        Returns:
        The next value.
        Throws:
        java.io.IOException