Modifier and Type | Class and Description |
---|---|
static class |
Params.Pair |
Constructor and Description |
---|
Params()
Create a Params object
|
Params(Params other)
Create a Params object, initialized from another one.
|
Modifier and Type | Method and Description |
---|---|
void |
addParam(String name)
Valueless parameter
|
void |
addParam(String name,
String value)
Add a parameter.
|
boolean |
containsParam(String name) |
int |
count() |
String |
getValue(String name) |
List<String> |
getValues(String name) |
String |
httpString() |
void |
merge(Params other) |
List<String> |
names()
Get the names of parameters - one ocurrence
|
List<Params.Pair> |
pairs()
Exactly as seen
|
void |
remove(String name) |
public Params()
public Params(Params other)
other
- public void merge(Params other)
public void addParam(String name, String value)
name
- Name of the parametervalue
- Value - May be null to indicate none - the name still goes.public void addParam(String name)
public boolean containsParam(String name)
public void remove(String name)
public List<Params.Pair> pairs()
public int count()
public String httpString()
Licenced under the Apache License, Version 2.0