Package | Description |
---|---|
net.degreedays.api.processing |
For advanced use, this enables customization of the request/response processing (XML, HTTP, security etc.).
|
Class and Description |
---|
BytesToEncodedString
Encodes a byte array into an encoded string and a label describing its
encoding.
|
DateFormatter
Formats dates as strings.
|
EncodedString
An encoded string and a label describing its encoding.
|
EndpointGetter
Gets an endpoint URL for a request.
|
HttpRequest
A set of parameter names and values to be sent in an HTTP request.
|
HttpRequest.Builder
A builder class for creating immutable
HttpRequest objects. |
HttpRequestDispatcher
Sends an
HttpRequest to the API servers and returns a stream
containing the response. |
HttpResponseStream
A simple wrapper around the
InputStream that comes as a response from
the API servers. |
RandomFactory
Generates the random strings that are sent with requests as part of the
security mechanism that prevents replay attacks.
|
RequestSecurityInfo
Security info that needs to be generated and sent with each request to the
API.
|
RequestSecurityInfo.Builder
A builder class for creating immutable
RequestSecurityInfo
objects. |
RequestToXml
Turns the
Request into an XML string. |
ResponseParser
Parses the API response stream.
|
Signature
A signature of the request together with a label describing the method that
was used to create it.
|
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.
|
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. |
XmlHttpRequestProcessor.Builder
Builds
XmlHttpRequestProcessor objects: create and configure a
Builder object, then call XmlHttpRequestProcessor.Builder.build() to create an
XmlHttpRequestProcessor object. |
XmlRequestWrapper
Creates a complete XML request from a partial XML request (without any
security info) and
RequestSecurityInfo . |
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.