Class HttpHeader


  • public final class HttpHeader
    extends java.lang.Object
    Represents an HTTP header field.
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpHeader​(java.lang.String name, java.lang.String value)
      Creates a new header.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Returns the key for this header.
      java.lang.String getValue()
      Returns the value for this header.
      • Methods inherited from class java.lang.Object

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

      • HttpHeader

        public HttpHeader​(java.lang.String name,
                          java.lang.String value)
        Creates a new header.
        Parameters:
        name - the name for this header.
        value - the value for this header.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the key for this header.
        Returns:
        the key for this header
      • getValue

        public java.lang.String getValue()
        Returns the value for this header.
        Returns:
        the value for this header