public final class EvrythngApiBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
EvrythngApiBuilder.Builder<TYPE> |
static class |
EvrythngApiBuilder.CheckedBuilder<T>
Default command builder for the EVRYTHNG API.
|
static class |
EvrythngApiBuilder.UncheckedBuilder<T> |
| Modifier and Type | Method and Description |
|---|---|
static EvrythngApiBuilder.Builder<Boolean> |
delete(String apiKey,
URI uri,
Status responseStatus)
Creates a
EvrythngApiBuilder.Builder for executing a DELETE request. |
static EvrythngApiBuilder.Builder<Long> |
deleteMultiple(String apiKey,
URI uri,
Status responseStatus)
Creates a
EvrythngApiBuilder.Builder for executing a bulk DELETE request,
and wrap the X-result-count header as a integer response. |
static <T> EvrythngApiBuilder.Builder<T> |
get(String apiKey,
URI uri,
Status responseStatus,
com.fasterxml.jackson.core.type.TypeReference<T> returnType)
Creates a
EvrythngApiBuilder.Builder for executing a GET request. |
static <T> EvrythngApiBuilder.Builder<T> |
post(String apiKey,
URI uri,
Object data,
Status responseStatus,
com.fasterxml.jackson.core.type.TypeReference<T> responseType)
Creates a
EvrythngApiBuilder.CheckedBuilder for executing a POST request. |
static EvrythngApiBuilder.Builder<AcceptedResourceResponse> |
postAsynchronously(String apiKey,
URI uri,
Object data,
Pattern extractor) |
static <T> EvrythngApiBuilder.Builder<T> |
postMultipart(String apiKey,
URI uri,
File file,
Status responseStatus,
com.fasterxml.jackson.core.type.TypeReference<T> responseType)
Creates a
EvrythngApiBuilder.CheckedBuilder for executing a file upload via a POST
request. |
static <T> EvrythngApiBuilder.Builder<T> |
put(String apiKey,
URI uri,
Object data,
Status responseStatus,
com.fasterxml.jackson.core.type.TypeReference<T> returnType)
Creates a
EvrythngApiBuilder.Builder for executing a PUT request. |
static <T> EvrythngApiBuilder.Builder<T> |
putMultipart(String apiKey,
URI uri,
File file,
Status responseStatus,
com.fasterxml.jackson.core.type.TypeReference<T> responseType)
Creates a
EvrythngApiBuilder.CheckedBuilder for executing a file upload via a PUT
request. |
static EvrythngApiBuilder.Builder<Long> |
putMultiple(String apiKey,
URI uri,
Object data,
Status responseStatus)
Create a
EvrythngApiBuilder.Builder for executing a PUT request, expecting
no result payload. |
public static <T> EvrythngApiBuilder.Builder<T> post(String apiKey, URI uri, Object data, Status responseStatus, com.fasterxml.jackson.core.type.TypeReference<T> responseType)
EvrythngApiBuilder.CheckedBuilder for executing a POST request.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLdata - the content data that will be associated with the POST requestresponseStatus - the expected HttpResponse statusresponseType - the native type to which the HttpResponse will be
mapped toEvrythngApiBuilder.CheckedBuilderpublic static <T> EvrythngApiBuilder.Builder<T> postMultipart(String apiKey, URI uri, File file, Status responseStatus, com.fasterxml.jackson.core.type.TypeReference<T> responseType)
EvrythngApiBuilder.CheckedBuilder for executing a file upload via a POST
request.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLfile - fileresponseStatus - the expected response StatusresponseType - the native type to which the HttpResponse will be
mapped toEvrythngApiBuilder.CheckedBuilderpublic static <T> EvrythngApiBuilder.Builder<T> putMultipart(String apiKey, URI uri, File file, Status responseStatus, com.fasterxml.jackson.core.type.TypeReference<T> responseType)
EvrythngApiBuilder.CheckedBuilder for executing a file upload via a PUT
request.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLfile - fileresponseStatus - the expected response StatusresponseType - the native type to which the HttpResponse will be
mapped toEvrythngApiBuilder.CheckedBuilderpublic static EvrythngApiBuilder.Builder<AcceptedResourceResponse> postAsynchronously(String apiKey, URI uri, Object data, Pattern extractor)
public static <T> EvrythngApiBuilder.Builder<T> get(String apiKey, URI uri, Status responseStatus, com.fasterxml.jackson.core.type.TypeReference<T> returnType)
EvrythngApiBuilder.Builder for executing a GET request.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLresponseStatus - the expected HttpResponse statusreturnType - the native type to which the HttpResponse will be
mapped toEvrythngApiBuilder.Builderpublic static <T> EvrythngApiBuilder.Builder<T> put(String apiKey, URI uri, Object data, Status responseStatus, com.fasterxml.jackson.core.type.TypeReference<T> returnType)
EvrythngApiBuilder.Builder for executing a PUT request.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLdata - the content data that will be associated with the POST requestresponseStatus - the expected HttpResponse statusreturnType - the native type to which the HttpResponse will be
mapped toEvrythngApiBuilder.Builderpublic static EvrythngApiBuilder.Builder<Long> putMultiple(String apiKey, URI uri, Object data, Status responseStatus)
EvrythngApiBuilder.Builder for executing a PUT request, expecting
no result payload. But a
ApiConfiguration.HTTP_HEADER_RESULT_COUNT header which
contains the amount of document updated.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLdata - the content data that will be associated with the PUT requestresponseStatus - the expected HttpResponse status. More likely 204 No
ContentEvrythngApiBuilder.Builderpublic static EvrythngApiBuilder.Builder<Boolean> delete(String apiKey, URI uri, Status responseStatus)
EvrythngApiBuilder.Builder for executing a DELETE request.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLresponseStatus - the expected HttpResponse statusEvrythngApiBuilder.Builderpublic static EvrythngApiBuilder.Builder<Long> deleteMultiple(String apiKey, URI uri, Status responseStatus)
EvrythngApiBuilder.Builder for executing a bulk DELETE request,
and wrap the X-result-count header as a integer response.apiKey - the authorization token for accessing the EVRYTHNG APIuri - the URI holding the absolute URLresponseStatus - the expected HttpResponse statusEvrythngApiBuilder.BuilderCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.