public class HTTPHeader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
Constructor and Description |
---|
HTTPHeader(java.lang.String key,
java.lang.String value)
Generates a new header from the given key and value.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey()
Gets the key portion of the parameter.
|
java.lang.String |
getValue()
Gets the value portion of the parameter.
|
void |
setKey(java.lang.String key)
Sets the key portion of the parameter.
|
void |
setValue(java.lang.String value)
Sets the value portion of the parameter.
|
java.lang.String |
toString()
A string representation of the header.
|
public HTTPHeader(java.lang.String key, java.lang.String value)
key
- The key portion of the header.value
- The value portion of the header.@Nullable public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key.@Nullable public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value.@Nullable public java.lang.String toString()
toString
in class java.lang.Object