| Modifier and Type | Method and Description |
|---|---|
String |
EvrythngApiBuilder.Builder.content()
Executes the current command and returns the
HttpResponse entity
content as String. |
int |
EvrythngApiBuilder.CheckedBuilder.count()
Deprecated.
|
int |
EvrythngApiBuilder.Builder.count()
Deprecated.
|
int |
EvrythngApiBuilder.UncheckedBuilder.count()
Deprecated.
|
protected abstract void |
ExampleRunner.doRun()
Concrete implementation.
|
TYPE |
EvrythngApiBuilder.Builder.execute()
Executes the current command and maps the
HttpResponse entity to
T specified by ApiCommand.responseType. |
TypedResponseWithEntity<TYPE> |
EvrythngApiBuilder.Builder.executeWithResponse() |
<X> TypedResponseWithEntity<X> |
EvrythngApiBuilder.UncheckedBuilder.executeWithResponse() |
String |
EvrythngApiBuilder.CheckedBuilder.jsonp(String callback) |
String |
EvrythngApiBuilder.Builder.jsonp(String callback)
Executes the current command by requesting JSONP in the
HttpResponse entity. |
String |
EvrythngApiBuilder.UncheckedBuilder.jsonp(String callback) |
EvrythngApiBuilder.Builder.Result<T> |
EvrythngApiBuilder.CheckedBuilder.list() |
EvrythngApiBuilder.Builder.Result<TYPE> |
EvrythngApiBuilder.Builder.list()
Executes the requests and returns a result object.
|
EvrythngApiBuilder.Builder.Result<T> |
EvrythngApiBuilder.UncheckedBuilder.list() |
org.apache.http.HttpResponse |
EvrythngApiBuilder.Builder.request()
Executes the current command and returns the native
HttpResponse. |
void |
ExampleRunner.run()
Runs the current example.
|
InputStream |
EvrythngApiBuilder.Builder.stream()
Executes the current command and returns the
HttpResponse content
InputStream. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utils.assertStatus(org.apache.http.HttpResponse response,
Status expected)
|
TypedResponseWithEntity<T> |
ApiCommand.bundle()
Execute the current command and returns both
HttpResponse and
the entity typed. |
String |
ApiCommand.content()
Executes the current command and returns the
HttpResponse entity
content as String. |
String |
ApiCommandBuilder.content()
Executes the current command and returns the
HttpResponse entity
content as String. |
String |
UncheckedApiCommandBuilder.content()
Executes the current command and returns the
HttpResponse entity
content as String. |
static <K> K |
Utils.convert(org.apache.http.HttpResponse response,
com.fasterxml.jackson.core.type.TypeReference<K> type)
Converts http response into entity
|
T |
ApiCommand.execute()
Executes the current command and maps the
HttpResponse entity to
T specified by ApiCommand.responseType. |
TYPE |
ApiCommandBuilder.execute()
Executes the current command and maps the
HttpResponse entity to
T specified by ApiCommand.responseType. |
<X> X |
UncheckedApiCommandBuilder.execute()
Executes the current command and maps the
HttpResponse entity to
T specified by ApiCommand.responseType. |
TypedResponseWithEntity<TYPE> |
ApiCommandBuilder.executeWithResponse() |
org.apache.http.Header |
ApiCommand.head(String headerName)
Executes the current command using the HTTP
HEAD method and
returns the value of the first HttpResponse Header
specified by headerName. |
org.apache.http.HttpResponse |
ApiCommand.request()
Executes the current command and returns the native
HttpResponse. |
org.apache.http.HttpResponse |
ApiCommandBuilder.request()
Executes the current command and returns the native
HttpResponse. |
org.apache.http.HttpResponse |
UncheckedApiCommandBuilder.request()
Executes the current command and returns the native
HttpResponse. |
InputStream |
ApiCommand.stream()
Executes the current command and returns the
HttpResponse entity
body as InputStream. |
InputStream |
ApiCommandBuilder.stream()
Executes the current command and returns the
HttpResponse content
InputStream. |
InputStream |
UncheckedApiCommandBuilder.stream()
Executes the current command and returns the
HttpResponse content
InputStream. |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
CollectionApiExample.createThngReferences(ApiManager apiManager,
int count)
Creates
Thng resources and return their references. |
protected void |
ThngPropertyApiExample.doRun() |
protected void |
ExceptionHandlingExample.doRun() |
protected void |
CollectionApiExample.doRun() |
protected void |
SimpleExample.doRun() |
protected void |
ThngApiExample.doRun() |
static void |
ThngPropertyApiExample.main(String[] args) |
static void |
ApiExamples.main(String[] args) |
static void |
ExceptionHandlingExample.main(String[] args) |
static void |
CollectionApiExample.main(String[] args) |
static void |
SimpleExample.main(String[] args) |
static void |
ThngApiExample.main(String[] args) |
| Modifier and Type | Class and Description |
|---|---|
class |
BadRequestException
Status.BAD_REQUEST (400) |
class |
ConflictException
Status.CONFLICT (409) |
class |
EvrythngClientException
TODO Comment this class
|
class |
EvrythngErrorException
TODO Comment this class
|
class |
EvrythngUnexpectedException
TODO Comment this class
|
class |
ForbiddenException
Status.FORBIDDEN (403) |
class |
InternalErrorException
|
class |
MethodNotAllowedException
|
class |
NotFoundException
Status.NOT_FOUND (404) |
class |
RequestEntityTooLargeException
|
class |
UnauthorizedException
Status.UNAUTHORIZED (401) |
Copyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.