See: Description
Interface | Description |
---|---|
BytesToEncodedString |
Encodes a byte array into an encoded string and a label describing its
encoding.
|
DateFormatter |
Formats dates as strings.
|
EndpointGetter |
Gets an endpoint URL for a request.
|
HttpRequestDispatcher |
Sends an
HttpRequest to the API servers and returns a stream
containing the response. |
RandomFactory |
Generates the random strings that are sent with requests as part of the
security mechanism that prevents replay attacks.
|
RequestToXml |
Turns the
Request into an XML string. |
ResponseParser |
Parses the API response stream.
|
Signer |
Creates a signature of the request, so that its integrity can be checked on
the API servers.
|
StringToBytes |
Turns a string (like an XML request) into a byte array.
|
TimestampFactory |
Creates timestamps for inclusion in requests.
|
XmlRequestWrapper |
Creates a complete XML request from a partial XML request (without any
security info) and
RequestSecurityInfo . |
Class | Description |
---|---|
EncodedString |
An encoded string and a label describing its encoding.
|
HttpRequest |
A set of parameter names and values to be sent in an HTTP request.
|
HttpResponseStream |
A simple wrapper around the
InputStream that comes as a response from
the API servers. |
RequestSecurityInfo |
Security info that needs to be generated and sent with each request to the
API.
|
Signature |
A signature of the request together with a label describing the method that
was used to create it.
|
XmlHttpRequestProcessor |
A concrete implementation of the
RequestProcessor interface that
turns Request objects into XML, adds the necessary security details,
sends them over HTTP to the Degree Days.net API servers, and parses the XML
responses into Response object models. |
For advanced use, this enables customization of the request/response processing (XML, HTTP, security etc.).
The starting point for customizations is the XmlHttpRequestProcessor.Builder
class.
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.