| Package | Description |
|---|---|
| com.codename1.io.rest |
Simplified REST API
|
| Modifier and Type | Method and Description |
|---|---|
Response<byte[]> |
RequestBuilder.getAsBytes()
Executes the request synchronously
|
Response<Map> |
RequestBuilder.getAsJsonMap()
Executes the request synchronously
|
Response<PropertyBusinessObject> |
RequestBuilder.getAsProperties(Class type)
Executes the request synchronously
|
Response<List<PropertyBusinessObject>> |
RequestBuilder.getAsPropertyList(Class type)
Executes the request synchronously
|
Response<List<PropertyBusinessObject>> |
RequestBuilder.getAsPropertyList(Class type,
String root)
Executes the request synchronously
|
Response<String> |
RequestBuilder.getAsString()
Executes the request synchronously
|
| Modifier and Type | Method and Description |
|---|---|
void |
ErrorCodeHandler.onError(Response<T> errorData)
An error callback can be invoked with a different type from the success
callback
|
| Modifier and Type | Method and Description |
|---|---|
ConnectionRequest |
RequestBuilder.fetchAsBytes(OnComplete<Response<byte[]>> callback)
Executes the request asynchronously and writes the response to the provided
Callback
|
ConnectionRequest |
RequestBuilder.fetchAsJsonMap(OnComplete<Response<Map>> callback)
Executes the request asynchronously and writes the response to the provided
Callback
|
ConnectionRequest |
RequestBuilder.fetchAsProperties(OnComplete<Response<PropertyBusinessObject>> callback,
Class type)
Executes the request asynchronously and writes the response to the provided
Callback.
|
ConnectionRequest |
RequestBuilder.fetchAsPropertyList(OnComplete<Response<List<PropertyBusinessObject>>> callback,
Class type)
Executes the request asynchronously and writes the response to the provided
Callback.
|
ConnectionRequest |
RequestBuilder.fetchAsPropertyList(OnComplete<Response<List<PropertyBusinessObject>>> callback,
Class type,
String root)
Executes the request asynchronously and writes the response to the provided
Callback.
|
ConnectionRequest |
RequestBuilder.fetchAsString(OnComplete<Response<String>> callback)
Executes the request asynchronously and writes the response to the provided
Callback
|
void |
RequestBuilder.getAsBytesAsync(Callback<Response<byte[]>> callback)
Deprecated.
|
ConnectionRequest |
RequestBuilder.getAsJsonMap(SuccessCallback<Response<Map>> callback)
Deprecated.
|
ConnectionRequest |
RequestBuilder.getAsJsonMap(SuccessCallback<Response<Map>> callback,
FailureCallback<? extends Object> onError)
Deprecated.
|
void |
RequestBuilder.getAsJsonMapAsync(Callback<Response<Map>> callback)
Deprecated.
|
void |
RequestBuilder.getAsStringAsync(Callback<Response<String>> callback)
Deprecated.
please use
RequestBuilder.fetchAsString(com.codename1.util.OnComplete) instead |
Copyright © 2023. All rights reserved.