public class HTTPHeader
extends java.lang.Object
implements java.io.Serializable, java.lang.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
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of one of the headers in the sampled web request.
|
private java.lang.String |
value
The value of one of the headers in the sampled web request.
|
Constructor and Description |
---|
HTTPHeader() |
Modifier and Type | Method and Description |
---|---|
HTTPHeader |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of one of the headers in the sampled web request.
|
java.lang.String |
getValue()
The value of one of the headers in the sampled web request.
|
int |
hashCode() |
void |
setName(java.lang.String name)
The name of one of the headers in the sampled web request.
|
void |
setValue(java.lang.String value)
The value of one of the headers in the sampled web request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
HTTPHeader |
withName(java.lang.String name)
The name of one of the headers in the sampled web request.
|
HTTPHeader |
withValue(java.lang.String value)
The value of one of the headers in the sampled web request.
|
private java.lang.String name
The name of one of the headers in the sampled web request.
private java.lang.String value
The value of one of the headers in the sampled web request.
public void setName(java.lang.String name)
The name of one of the headers in the sampled web request.
name
- The name of one of the headers in the sampled web request.public java.lang.String getName()
The name of one of the headers in the sampled web request.
public HTTPHeader withName(java.lang.String name)
The name of one of the headers in the sampled web request.
name
- The name of one of the headers in the sampled web request.public void setValue(java.lang.String value)
The value of one of the headers in the sampled web request.
value
- The value of one of the headers in the sampled web request.public java.lang.String getValue()
The value of one of the headers in the sampled web request.
public HTTPHeader withValue(java.lang.String value)
The value of one of the headers in the sampled web request.
value
- The value of one of the headers in the sampled web request.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public HTTPHeader clone()
clone
in class java.lang.Object