Package com.netscape.certsrv.common
Class NameValuePairs
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<java.lang.String,java.lang.String>
-
- com.netscape.certsrv.common.NameValuePairs
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,java.lang.String>
public class NameValuePairs extends java.util.LinkedHashMap<java.lang.String,java.lang.String>
A class represents an ordered list of name value pairs.- Version:
- $Revision$, $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameValuePairs()
Constructs name value pairs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
parseInto(java.lang.String s, NameValuePairs nvp)
Parses a string into name value pairs.java.lang.String
toString()
Show the content of this name value container as string representation.-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Show the content of this name value container as string representation.- Overrides:
toString
in classjava.util.AbstractMap<java.lang.String,java.lang.String>
- Returns:
- string representation
-
parseInto
public static boolean parseInto(java.lang.String s, NameValuePairs nvp)
Parses a string into name value pairs.- Parameters:
s
- stringnvp
- name value pairs- Returns:
- true if successful
-
-