Class MessageHeader.Series

  • Enclosing class:
    MessageHeader

    private class MessageHeader.Series
    extends java.lang.Object
    The Series object is used to represent a list of HTTP header value for a given name. It allows multiple values to exist for a given header, such as the Cookie header. Most entries will contain a single value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> value
      Contains the header values that belong to the entry name.
    • Constructor Summary

      Constructors 
      Constructor Description
      Series()
      Constructor for the Entry object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getValues()
      This returns the list of header values associated with the header name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        private java.util.List<java.lang.String> value
        Contains the header values that belong to the entry name.
    • Constructor Detail

      • Series

        public Series()
        Constructor for the Entry object. The entry is created using the name of the HTTP header. Values can be added to the entry list in order to build up the header.
    • Method Detail

      • getValues

        public java.util.List<java.lang.String> getValues()
        This returns the list of header values associated with the header name. Each value is added as an individual header prefixed by the header name and a semicolon character.
        Returns:
        this returns the list of values for the header