Class BasicHeader

    • Constructor Summary

      Constructors 
      Constructor Description
      BasicHeader​(java.lang.String name, java.lang.String value)
      Constructor 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()
      Get the name of the Header.
      java.lang.String getValue()
      Get the value of the Header.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BasicHeader

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

      • getName

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

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

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

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Throws:
        java.lang.CloneNotSupportedException