java.lang.Object
org.apache.jena.sparql.exec.http.Params

public class Params extends Object
A collection of parameters for HTTP protocol use.
  • Method Details

    • create

      public static Params create()
      Pattern: String URL = Params.create().add("name", "value")... .httpString(endpoint);
    • create

      public static Params create(Params other)
      Pattern: String URL = Params.create(baseParams).add("name", "value")... .httpString(endpoint);
    • merge

      public void merge(Params other)
    • add

      public Params add(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.
      Returns:
      this Params for continued operation
    • add

      public Params add(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.Param> pairs()
      Exactly as seen
    • count

      public int count()
    • names

      public List<String> names()
      Get the names of parameters - one occurrence
    • httpString

      public String httpString()
      URL query string, without leading "?"
    • toString

      public String toString()
      Overrides:
      toString in class Object