net.degreedays.api
Class ResponseMetadata

java.lang.Object
  extended by net.degreedays.api.ResponseMetadata
All Implemented Interfaces:
java.io.Serializable

public final class ResponseMetadata
extends java.lang.Object
implements java.io.Serializable

Extra data that comes back with every response from the Degree Days.net API.

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.


Nested Class Summary
static class ResponseMetadata.Builder
          A builder class for creating immutable ResponseMetadata objects e.g. for testing purposes.
 
Method Summary
 RateLimit rateLimit()
          Returns details of the rate limit that is currently associated with the account.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

rateLimit

public RateLimit rateLimit()
Returns details of the rate limit that is currently associated with the account.



www.degreedays.net/api/