com.jayway.restassured.internal.http
Class BasicNameValuePairWithNoValueSupport

java.lang.Object
  extended by com.jayway.restassured.internal.http.BasicNameValuePairWithNoValueSupport
All Implemented Interfaces:
Serializable, Cloneable, org.apache.http.NameValuePair

public class BasicNameValuePairWithNoValueSupport
extends Object
implements org.apache.http.NameValuePair, Cloneable, Serializable

Basically a copy of the BasicNameValuePair that allows for no-value parameters.

See Also:
Serialized Form

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

Constructor Detail

BasicNameValuePairWithNoValueSupport

public BasicNameValuePairWithNoValueSupport(String name,
                                            Object 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 String getName()
Specified by:
getName in interface org.apache.http.NameValuePair

getValue

public String getValue()
Specified by:
getValue in interface org.apache.http.NameValuePair

hasValue

public boolean hasValue()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

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


Copyright © 2010-2012. All Rights Reserved.