Class HTTPHeader

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class HTTPHeader
    extends Object
    implements Serializable, Cloneable

    The response from a GetSampledRequests request includes an HTTPHeader complex type that appears as Headers in the response syntax. HTTPHeader contains the names and values of all of the headers that appear in one of the web requests that were returned by GetSampledRequests.

    See Also:
    Serialized Form
    • Constructor Detail

      • HTTPHeader

        public HTTPHeader()
    • Method Detail

      • setName

        public void setName​(String name)

        The name of one of the headers in the sampled web request.

        Parameters:
        name - The name of one of the headers in the sampled web request.
      • getName

        public String getName()

        The name of one of the headers in the sampled web request.

        Returns:
        The name of one of the headers in the sampled web request.
      • withName

        public HTTPHeader withName​(String name)

        The name of one of the headers in the sampled web request.

        Parameters:
        name - The name of one of the headers in the sampled web request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setValue

        public void setValue​(String value)

        The value of one of the headers in the sampled web request.

        Parameters:
        value - The value of one of the headers in the sampled web request.
      • getValue

        public String getValue()

        The value of one of the headers in the sampled web request.

        Returns:
        The value of one of the headers in the sampled web request.
      • withValue

        public HTTPHeader withValue​(String value)

        The value of one of the headers in the sampled web request.

        Parameters:
        value - The value of one of the headers in the sampled web request.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object