public class Header
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name
The name of the header.
|
protected java.lang.String |
value
The value of the header.
|
Constructor and Description |
---|
Header(java.lang.String name,
java.lang.String value)
Construct a Header object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the name of this header.
|
java.lang.String |
getValue()
Returns the value of this header.
|
int |
hashCode() |
protected java.lang.String name
protected java.lang.String value
public Header(java.lang.String name, java.lang.String value)
name
- name of the headervalue
- value of the headerpublic java.lang.String getName()
public java.lang.String getValue()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object