Class BasicHeader

    • Constructor Summary

      Constructors 
      Constructor Description
      BasicHeader​(java.lang.String name, java.lang.String value)
      Constructs with name and value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()  
      HeaderElement[] getElements()
      Parses the value.
      java.lang.String getName()
      Gets the name of this pair.
      java.lang.String getValue()
      Gets the value of this pair.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • EMPTY_HEADER_ELEMENTS

        private static final HeaderElement[] EMPTY_HEADER_ELEMENTS
      • name

        private final java.lang.String name
      • value

        private final java.lang.String value
    • Constructor Detail

      • BasicHeader

        public BasicHeader​(java.lang.String name,
                           java.lang.String value)
        Constructs with name and value.
        Parameters:
        name - the header name
        value - the header value
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • getName

        public java.lang.String getName()
        Description copied from interface: NameValuePair
        Gets the name of this pair.
        Specified by:
        getName in interface NameValuePair
        Returns:
        the name of this pair, never null.
      • getValue

        public java.lang.String getValue()
        Description copied from interface: NameValuePair
        Gets the value of this pair.
        Specified by:
        getValue in interface NameValuePair
        Returns:
        the value of this pair, may be null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object