com.webrenderer.se
Class RequestHeader

java.lang.Object
  extended by com.webrenderer.se.RequestHeader

public class RequestHeader
extends java.lang.Object

Represents a single name/value pair in a header.


Constructor Summary
RequestHeader(java.lang.String theName, java.lang.String theValue)
          Constructs a RequestHeader with given name value pair.
 
Method Summary
 java.lang.String getName()
          Gets the name of the header name/value pair.
 java.lang.String getValue()
          Gets the value of the header name/value pair.
 boolean hasChanged()
          Gets if the value has been modified after construction.
 void setValue(java.lang.String newValue)
          Sets the value of the header name/value pair.
 java.lang.String toString()
          Convert the header name/value pair into HTTP request format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestHeader

public RequestHeader(java.lang.String theName,
                     java.lang.String theValue)
Constructs a RequestHeader with given name value pair.

Parameters:
theName - The name.
theValue - The value.
Method Detail

getValue

public java.lang.String getValue()
Gets the value of the header name/value pair.

Returns:
The value.

setValue

public void setValue(java.lang.String newValue)
Sets the value of the header name/value pair.

Parameters:
newValue - The new value.

getName

public java.lang.String getName()
Gets the name of the header name/value pair.

Returns:
The name.

toString

public java.lang.String toString()
Convert the header name/value pair into HTTP request format.

Overrides:
toString in class java.lang.Object
Returns:
The header as it would be represented in a HTTP request.

hasChanged

public boolean hasChanged()
Gets if the value has been modified after construction.

Returns:
true if the value has been modified.