- java.lang.Object
-
- net.sourceforge.urin.Query<java.lang.Iterable<HttpQuery.QueryParameter>>
-
- net.sourceforge.urin.scheme.http.HttpQuery
-
- All Implemented Interfaces:
java.lang.Iterable<HttpQuery.QueryParameter>
public final class HttpQuery extends Query<java.lang.Iterable<HttpQuery.QueryParameter>> implements java.lang.Iterable<HttpQuery.QueryParameter>
A query component of a URI with HTTP/HTTPS specific sub-encoding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpQuery.QueryParameter
Value type for specifying HTTP query parameter name/value pairs.
-
Field Summary
Fields Modifier and Type Field Description static MakingDecoder<HttpQuery,java.lang.Iterable<HttpQuery.QueryParameter>,java.lang.String>
HTTP_QUERY_MAKING_DECODER
TheMakingDecoder
used by HTTP queries.-
Fields inherited from class net.sourceforge.urin.Query
STRING_QUERY_MAKING_DECODER
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
int
hashCode()
static MakingDecoder<HttpQuery,java.lang.Iterable<HttpQuery.QueryParameter>,java.lang.String>
httpQueryMakingDecoder()
Deprecated.useHTTP_QUERY_MAKING_DECODER
insteadjava.util.Iterator<HttpQuery.QueryParameter>
iterator()
static HttpQuery.QueryParameter
queryParameter(java.lang.String name)
Factory method for name only query parameters.static HttpQuery.QueryParameter
queryParameter(java.lang.String name, java.lang.String value)
Factory method for name/value pair query parameters.static HttpQuery
queryParameters(java.lang.Iterable<HttpQuery.QueryParameter> queryParameters)
Factory method for HTTP and HTTPs encoded query components made up of name/value pairs.static HttpQuery
queryParameters(HttpQuery.QueryParameter... queryParameters)
Factory method for HTTP and HTTPs encoded query components made up of name/value pairs.java.lang.String
toString()
-
Methods inherited from class net.sourceforge.urin.Query
query, stringQueryMaker, value
-
-
-
-
Field Detail
-
HTTP_QUERY_MAKING_DECODER
public static final MakingDecoder<HttpQuery,java.lang.Iterable<HttpQuery.QueryParameter>,java.lang.String> HTTP_QUERY_MAKING_DECODER
TheMakingDecoder
used by HTTP queries.
-
-
Method Detail
-
httpQueryMakingDecoder
@Deprecated public static MakingDecoder<HttpQuery,java.lang.Iterable<HttpQuery.QueryParameter>,java.lang.String> httpQueryMakingDecoder()
Deprecated.useHTTP_QUERY_MAKING_DECODER
insteadFactory method forMakingDecoder
s ofHttpQuery
s- Returns:
- a
MakingDecoder
ofString
HttpQuery
s
-
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
-QueryParameter
s 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
ofQueryParameter
s that will be represented by this query.- Returns:
- a
HttpQuery
representing the given query parameters.
-
iterator
public java.util.Iterator<HttpQuery.QueryParameter> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<HttpQuery.QueryParameter>
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-