public class ParameterMap extends Object
xxx=value1&xxx=value2
| Constructor and Description |
|---|
ParameterMap()
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Empty the parameter map
|
Iterator |
getParameterMapIterator()
Get an Iterator to the parameter map
|
String |
getParameterMapName(String value)
Get the parameter name associated with the 1st occurance of this value
|
String |
getParameterMapValue(String name)
Get a named value from the parameter map
|
String |
getParameterNameFromIterator()
Get the parameter name from the current iterator
|
String |
getParameterValueFromIterator()
Get the parameter value from the current iterator
|
boolean |
nextParameterMapEntry(Iterator iterator)
Save the next Entry Set for this Iterator
|
int |
populateMapFromUrlArguments(String url,
String delimiter)
Populate a parameter map from an URL argument list.
|
void |
setParameterMapValue(String name,
String value)
Set a name/value pair
|
public void clear()
public Iterator getParameterMapIterator()
public boolean nextParameterMapEntry(Iterator iterator)
iterator - Parameter map iteratorpublic String getParameterNameFromIterator()
public String getParameterValueFromIterator()
public void setParameterMapValue(String name, String value)
name - Item namevalue - Item valuepublic String getParameterMapValue(String name)
name - Item namepublic String getParameterMapName(String value)
value - Item valuepublic int populateMapFromUrlArguments(String url, String delimiter)
http://x.y.com?xxx=yyy&aaa=bbb
?xxx=yyy&aaa=bbb
xxx=yyy&aaa=bbb
Will populated the map as:
xxx=yyy
aaa=bbb
url - Original URL [with optional parameter list] or only
the parameter list [with an optional ? prefix]delimiter - Argument separator text (regular expression)Copyright © 2004–2017 Indiana University Library Information Technology. All rights reserved.