Class NameValuePair

java.lang.Object
org.eclipse.rdf4j.http.client.spi.NameValuePair

public final class NameValuePair extends Object
A simple name/value pair.
  • Method Details

    • of

      public static NameValuePair of(String name, String value)
      Creates a new NameValuePair with the given name and value.
      Parameters:
      name - the name; must not be null
      value - the value; must not be null
      Returns:
      a new NameValuePair
    • getName

      public String getName()
      Returns the name.
      Returns:
      the name; never null
    • getValue

      public String getValue()
      Returns the value.
      Returns:
      the value; never null
    • toString

      public String toString()
      Overrides:
      toString in class Object