Class HttpQuery

    • Method Detail

      • queryParameter

        public static HttpQuery.QueryParameter queryParameter​(java.lang.String name,
                                                              java.lang.String value)
        Factory method for name/value pair query parameters.
        Parameters:
        name - the name part of the query parameter.
        value - the value part of the query parameter.
        Returns:
        a QueryParameter representing the given name and value.
      • queryParameter

        public static HttpQuery.QueryParameter queryParameter​(java.lang.String name)
        Factory method for name only query parameters.
        Parameters:
        name - the name part of the query parameter.
        Returns:
        a QueryParameter representing the given name.
      • queryParameters

        public static HttpQuery queryParameters​(HttpQuery.QueryParameter... queryParameters)
        Factory method for HTTP and HTTPs encoded query components made up of name/value pairs.
        Parameters:
        queryParameters - QueryParameters that will be represented by this query.
        Returns:
        a HttpQuery representing the given query parameters.
      • queryParameters

        public static HttpQuery queryParameters​(java.lang.Iterable<HttpQuery.QueryParameter> queryParameters)
        Factory method for HTTP and HTTPs encoded query components made up of name/value pairs.
        Parameters:
        queryParameters - Iterable of QueryParameters that will be represented by this query.
        Returns:
        a HttpQuery representing the given query parameters.
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object