public class AWSUpload extends RestEndpoint
uri
Constructor and Description |
---|
AWSUpload(HeadlessThermostat thermostat,
CertificateLoader loader,
Properties properties)
Instantiates an endpoint to receive aws credentials.
|
Modifier and Type | Method and Description |
---|---|
HTTPResponse |
post(HTTPRequest request,
Map<String,String> headers,
Map<String,String> parameters)
Handles
POST request on this endpoint. |
delete, get, getURI, put
public AWSUpload(HeadlessThermostat thermostat, CertificateLoader loader, Properties properties)
thermostat
- the thermostat.loader
- the certificate loader to use for the server certificates.properties
- the properties to use for the server certificates list.public HTTPResponse post(HTTPRequest request, Map<String,String> headers, Map<String,String> parameters)
RestEndpoint
POST
request on this endpoint.
Default implementation return a a status code 501
post
in class RestEndpoint
request
- the request to handle.headers
- request headers.parameters
- parsed query and body parameters.