|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.sparql.engine.http.Params
public class Params
A collection of parameters for protocol use.
Nested Class Summary | |
---|---|
static class |
Params.Pair
|
Constructor Summary | |
---|---|
Params()
Create a Params object |
|
Params(Params other)
Create a Params object, initialized from another one. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Params()
public Params(Params other)
other
- Method Detail |
---|
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 String getValue(String name)
public List<String> getValues(String name)
public void remove(String name)
public List<Params.Pair> pairs()
public int count()
public List<String> names()
public String httpString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |