|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.module.apikit.uri.URIParameters
public class URIParameters
A class to hold a collection of parameters for use during the expansion process.
It provides more convenient functions than the underlying map and handles the rules for parameter values.
| Constructor Summary | |
|---|---|
URIParameters()
Creates a new instance. |
|
URIParameters(Map<String,String[]> parameters)
Creates a new instance from the specified map. |
|
| Method Summary | |
|---|---|
boolean |
exists(String name)
Indicates whether the parameters for the given name has a value. |
String |
getValue(String name)
Returns the value for the specified parameter. |
String[] |
getValues(String name)
Returns the values for the specified parameter. |
boolean |
hasValue(String name)
Indicates whether the parameters for the given name has a value. |
Set<String> |
names()
Returns the set of parameter names as an unmodifiable set. |
void |
set(String name,
String value)
Set a parameter with only one value. |
void |
set(String name,
String[] values)
Set a parameter with only multiple values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URIParameters()
public URIParameters(Map<String,String[]> parameters)
parameters - The map of parameters to supply| Method Detail |
|---|
public void set(String name,
String value)
set in interface Parametersname - The name of the parameter.value - The value.
public void set(String name,
String[] values)
set in interface Parametersname - The name of the parameter.values - The values.public Set<String> names()
names in interface Parameterspublic String getValue(String name)
getValue in interface Parametersname - The name of the parameter.
null if not specified.public String[] getValues(String name)
getValues in interface Parametersname - The name of the parameter.
null if not specified.public boolean exists(String name)
exists in interface Parametersname - The name of the parameter.
true if it has a value; false otherwise.public boolean hasValue(String name)
A parameter has a value if:
hasValue in interface Parametersname - The name of the parameter.
true if it has a value;
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||