Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

HTTPClient
Class NVPair  view NVPair download NVPair.java

java.lang.Object
  extended byHTTPClient.NVPair

public final class NVPair
extends java.lang.Object

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

Version:
0.3-2 18/06/1999

Field Summary
private  java.lang.String name
          the name
private  java.lang.String value
          the value
 
Constructor Summary
(package private) NVPair()
          Creates an empty name/value pair.
  NVPair(NVPair p)
          Creates a copy of a given name/value pair.
  NVPair(java.lang.String name, java.lang.String value)
          Creates a new name/value pair and initializes it to the specified name and value.
 
Method Summary
 java.lang.String getName()
          get the name
 java.lang.String getValue()
          get the value
 java.lang.String toString()
          produces a string containing the name and value of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private java.lang.String name
the name


value

private java.lang.String value
the value

Constructor Detail

NVPair

NVPair()
Creates an empty name/value pair.


NVPair

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


NVPair

public NVPair(java.lang.String name,
              java.lang.String value)
Creates a new name/value pair and initializes it to the specified name and value.

Method Detail

getName

public final java.lang.String getName()
get the name


getValue

public final java.lang.String getValue()
get the value


toString

public java.lang.String toString()
produces a string containing the name and value of this instance.