All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class HTTPClient.NVPair

java.lang.Object
    |
    +----HTTPClient.NVPair

public class NVPair
extends Object
This class holds a Name/Value pair of strings. It's used for headers, form-data, attribute-lists, etc.

Version:
0.3 30/01/1998
Author:
Ronald Tschalär

Constructor Index

 o NVPair(NVPair)
Creates a copy of a given name/value pair.
 o NVPair(String, String)
Creates a new name/value pair and initializes it to the specified name and value.

Method Index

 o getName()
get the name
 o getValue()
get the value
 o toString()
produces a string containing the name and value of this instance.

Constructors

 o NVPair
public NVPair(NVPair p)
Creates a copy of a given name/value pair.

Parameters:
p - the name/value pair to copy
 o NVPair
public NVPair(String name,
              String value)
Creates a new name/value pair and initializes it to the specified name and value.

Parameters:
name - the name
value - the value

Methods

 o getName
public final String getName()
get the name

Returns:
the name
 o getValue
public final String getValue()
get the value

Returns:
the value
 o toString
public String toString()
produces a string containing the name and value of this instance.

Returns:
a string containing the class name and the name and value
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index