public final class HttpRequest
extends java.lang.Object
Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.
| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRequest.Builder
A builder class for creating immutable
HttpRequest objects. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Returns
true if o is an
HttpRequest object with an equal URL and equal parameters,
irrespective of the order of the parameter names returned by
getParamNames(). |
java.lang.String[] |
getParamNames() |
java.lang.String |
getParamValue(java.lang.String paramName) |
int |
hashCode()
Overridden to ensure consistency with
equals. |
int |
paramCount() |
java.lang.String |
url() |
public java.lang.String url()
public int paramCount()
public java.lang.String[] getParamNames()
public java.lang.String getParamValue(java.lang.String paramName)
java.lang.NullPointerException - if paramName is
null.java.lang.IllegalArgumentException - if paramName is not one of
the parameters stored within this HttpRequest.public int hashCode()
equals.hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
true if o is an
HttpRequest object with an equal URL and equal parameters,
irrespective of the order of the parameter names returned by
getParamNames().equals in class java.lang.Object
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.