org.apache.http.message
Class BasicNameValuePair

java.lang.Object
  extended by org.apache.http.message.BasicNameValuePair
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, NameValuePair

public class BasicNameValuePair
extends java.lang.Object
implements NameValuePair, java.lang.Cloneable, java.io.Serializable

Basic implementation of NameValuePair.

Since:
4.0
See Also:
Serialized Form

Constructor Summary
BasicNameValuePair(java.lang.String name, java.lang.String value)
          Default Constructor taking a name and a value.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object object)
           
 java.lang.String getName()
           
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicNameValuePair

public BasicNameValuePair(java.lang.String name,
                          java.lang.String value)
Default Constructor taking a name and a value. The value may be null.

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

getName

public java.lang.String getName()
Specified by:
getName in interface NameValuePair

getValue

public java.lang.String getValue()
Specified by:
getValue in interface NameValuePair

toString

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

equals

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

hashCode

public int hashCode()
Overrides:
hashCode 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


Copyright © 2005-2011 The Apache Software Foundation. All Rights Reserved.