public final class Header extends Object implements AnyRequestModifier
| Constructor and Description |
|---|
Header(String nameAndValue)
Creates a new header instance.
|
Header(String name,
String value)
Creates a new header instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(ServerDriverHttpUriRequest request)
Apply this modifier to the given request.
|
org.joda.time.DateTime |
asDateTime()
The value of this header as a JodaTime
DateTime in UTC. |
boolean |
equals(Object object) |
String |
getName()
Get the name of this header.
|
String |
getValue()
Get the value of this header.
|
int |
hashCode() |
String |
toString() |
public Header(String name, String value)
name - The header namevalue - The header valuepublic Header(String nameAndValue)
nameAndValue - The name and value as "name: value".public String getName()
public String getValue()
public void applyTo(ServerDriverHttpUriRequest request)
AnyRequestModifierapplyTo in interface AnyRequestModifierrequest - The requestpublic org.joda.time.DateTime asDateTime()
DateTime in UTC. If not valid, a RuntimeDateFormatException will be thrown.@Generated(value="Eclipse") public int hashCode()
@Generated(value="Eclipse") public boolean equals(Object object)
Copyright © 2013. All Rights Reserved.