Oracle Application Server HTTPClient API Reference
10g Release 2 (10.1.2)

B14020-02


HTTPClient
Class NVPair

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.


Constructor Summary
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

 

Constructor Detail

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.
Parameters:
name - the name
value - the value

NVPair

public NVPair(NVPair p)
Creates a copy of a given name/value pair.
Parameters:
p - the name/value pair to copy

Method Detail

getName

public final java.lang.String getName()
Get the name.
Returns:
the name

getValue

public final java.lang.String getValue()
Get the value.
Returns:
the value

toString

public java.lang.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

Oracle Application Server HTTPClient API Reference
10g Release 2 (10.1.2)

B14020-02


Copyright © 2004, 2005, Oracle. All rights reserved.