Package | Description |
---|---|
net.degreedays.api |
Core Degree Days.net API classes, including
DegreeDaysApi - the starting point for all API operations. |
net.degreedays.api.data |
For specifying and receiving degree-day data and temperature data from the API.
|
net.degreedays.api.processing |
For advanced use, this enables customization of the request/response processing (XML, HTTP, security etc.).
|
net.degreedays.api.regression |
For using the API to run regressions against your energy-usage data.
|
Modifier and Type | Method and Description |
---|---|
Response |
RequestProcessor.process(Request request)
Processes the
Request object and returns a
Response object which is either a
FailureResponse or a
Response that's type is the counterpart to
that of the Request object passed in. |
Modifier and Type | Class and Description |
---|---|
class |
LocationDataRequest
Defines a request for one or more sets of degree-day data from a particular
location.
|
class |
LocationInfoRequest
Defines a request for info about the station(s) that would be used to fulfil
an equivalent
LocationDataRequest . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
EndpointGetter.getEndpoint(Request request)
Returns the endpoint URL that should be used for the request passed in.
|
java.lang.String |
RequestToXml.getXml(Request request) |
Response |
ResponseParser.parseResponse(java.io.InputStream responseStream,
Request request)
Note that it is not the responsibility of this parser to close the
responseStream . |
Response |
XmlHttpRequestProcessor.process(Request request) |
Modifier and Type | Class and Description |
---|---|
class |
RegressionRequest
|
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.