public final class ResponseMetadata
extends java.lang.Object
implements java.io.Serializable
The metadata for any particular response can be accessed via the
metadata()
method of the Response
object, or via the responseMetadata()
method of the RequestFailureException
(if
such an exception was thrown to indicate a failure in the server's processing
of the API request).
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 |
ResponseMetadata.Builder
A builder class for creating immutable
ResponseMetadata objects
e.g. for testing purposes. |
Modifier and Type | Method and Description |
---|---|
RateLimit |
rateLimit()
Returns details of the rate limit that is currently associated with the
account.
|
java.lang.String |
toString()
Returns a non-null, non-empty string representation of this object for logging and debugging purposes.
|
public RateLimit rateLimit()
public java.lang.String toString()
The exact details of the representation are unspecified and subject to change.
toString
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.