com.hp.hpl.jena.sparql.engine.http
Class Params

java.lang.Object
  extended by com.hp.hpl.jena.sparql.engine.http.Params
Direct Known Subclasses:
HttpQuery

public class Params
extends Object

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

Params

public Params()
Create a Params object


Params

public Params(Params other)
Create a Params object, initialized from another one. A copy is made so the initial values of the Params object are as of the time this constructor was called.

Parameters:
other -
Method Detail

merge

public void merge(Params other)

addParam

public void addParam(String name,
                     String value)
Add a parameter.

Parameters:
name - Name of the parameter
value - Value - May be null to indicate none - the name still goes.

addParam

public void addParam(String name)
Valueless parameter


containsParam

public boolean containsParam(String name)

getValue

public String getValue(String name)

getValues

public List<String> getValues(String name)

remove

public void remove(String name)

pairs

public List<Params.Pair> pairs()
Exactly as seen


count

public int count()

names

public List<String> names()
Get the names of parameters - one ocurrence


httpString

public String httpString()


Licenced under the Apache License, Version 2.0