com.sonalb.net.http
Class HeaderEntry

java.lang.Object
  extended by com.sonalb.net.http.HeaderEntry
All Implemented Interfaces:
java.lang.Cloneable

public class HeaderEntry
extends java.lang.Object
implements java.lang.Cloneable

Represents a single name-value pair of an HTTP Header.

Author:
Sonal Bansal

Constructor Summary
HeaderEntry(java.lang.String key, java.lang.String value)
          Creates a HeaderEntry with specified key and value.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getKey()
          Gets the Key/Name.
 java.lang.String getValue()
          Gets the Value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderEntry

public HeaderEntry(java.lang.String key,
                   java.lang.String value)
Creates a HeaderEntry with specified key and value.

Parameters:
key - the name; must be non-null
value - the value
Method Detail

getKey

public java.lang.String getKey()
Gets the Key/Name.


getValue

public java.lang.String getValue()
Gets the Value.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException