public class RequestHeader extends Object
Constructor and Description |
---|
RequestHeader(String theName,
String theValue)
Constructs a RequestHeader with given name value pair.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the header name/value pair.
|
String |
getValue()
Gets the value of the header name/value pair.
|
boolean |
hasChanged()
Gets if the value has been modified after construction.
|
void |
setValue(String newValue)
Sets the value of the header name/value pair.
|
String |
toString()
Convert the header name/value pair into HTTP request format.
|
public String getValue()
public void setValue(String newValue)
newValue
- The new value.public String getName()
public String toString()
public boolean hasChanged()
true
if the value has been modified.