Class HttpQuery.QueryParameter

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean hasValue()
      Returns true if value() can be called on this QueryParameter.
      abstract java.lang.String name()
      Gets the (non-encoded) name of this query parameter as a String.
      abstract java.lang.String value()
      Gets the value component of this QueryParameter, as a String, if it has one, or throws UnsupportedOperationException otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • name

        public abstract java.lang.String name()
        Gets the (non-encoded) name of this query parameter as a String.
        Returns:
        the (non-encoded) name of this query parameter as a String.
      • hasValue

        public abstract boolean hasValue()
        Returns true if value() can be called on this QueryParameter. This method returns false for QueryParameters that do not have a value component.
        Returns:
        true if value() can be called on this QueryParameter.
      • value

        public abstract java.lang.String value()
        Gets the value component of this QueryParameter, as a String, if it has one, or throws UnsupportedOperationException otherwise.

        The existence of a value component can be tested by calling hasValue().

        Returns:
        the value component of this QueryParameter.
        Throws:
        java.lang.UnsupportedOperationException - if this is a QueryParameter that does not have a value component.