| Modifier and Type | Method and Description |
|---|---|
protected HttpResponseAttributes |
DefaultRestConnection.toAttributes(org.mule.runtime.http.api.domain.message.response.HttpResponse response) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<String,HttpResponseAttributes>> |
RestConnection.bodylessRequest(RestRequestBuilder requestBuilder,
int responseTimeoutMillis,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
Sends a request for which a response entity is not expected.
|
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<String,HttpResponseAttributes>> |
DefaultRestConnection.bodylessRequest(RestRequestBuilder requestBuilder,
int responseTimeoutMillis,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
Sends a request for which a response entity is not expected.
|
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes>> |
RestConnection.request(RestRequestBuilder requestBuilder,
int responseTimeoutMillis,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
Sends a request and returns a
CompletableFuture with a Result which output is the response body in the form
of an InputStream and a HttpResponseAttributes. |
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes>> |
DefaultRestConnection.request(RestRequestBuilder requestBuilder,
int responseTimeoutMillis,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
Sends a request and returns a
CompletableFuture with a Result which output is the response body in the form
of an InputStream and a HttpResponseAttributes. |
protected <T> org.mule.runtime.extension.api.runtime.operation.Result<T,HttpResponseAttributes> |
DefaultRestConnection.toResult(org.mule.runtime.http.api.domain.message.response.HttpResponse response,
boolean isError,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultRestConnection.handleResponseError(org.mule.runtime.http.api.domain.message.response.HttpResponse response,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes>> future,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
RestError error) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
OAuthRestConnection.handleResponseError(org.mule.runtime.http.api.domain.message.response.HttpResponse response,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes>> future,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
RestError error) |
| Modifier and Type | Method and Description |
|---|---|
protected org.mule.sdk.api.runtime.operation.Result<InputStream,HttpResponseAttributes> |
RestSampleDataProvider.transformOutputToResult(Object output) |
| Constructor and Description |
|---|
RequestException(RestError error,
org.mule.runtime.extension.api.runtime.operation.Result<Object,HttpResponseAttributes> response)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
BaseRestOperation.doRequest(RestConfiguration config,
RestConnection connection,
RestRequestBuilder builder,
int responseTimeoutMillis,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<InputStream,HttpResponseAttributes> callback)
Performs the request using the given
builder and connection and completes the callback accordingly. |
protected void |
BaseRestOperation.doVoidRequest(RestConnection connection,
RestRequestBuilder builder,
int responseTimeoutMillis,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
org.mule.runtime.extension.api.runtime.process.CompletionCallback<String,HttpResponseAttributes> callback)
Performs the request using the given
builder and connection and completes the callback accordingly,
expecting the response to not contain a body. |
| Modifier and Type | Method and Description |
|---|---|
protected <T> org.mule.runtime.api.metadata.TypedValue<T> |
RestPagingProvider.evaluate(org.mule.runtime.api.metadata.TypedValue<String> content,
String expression,
org.mule.runtime.api.metadata.DataType expectedOutputType,
HttpResponseAttributes httpResponseAttributes) |
protected void |
MarkerPagingProvider.onPage(List<org.mule.runtime.api.metadata.TypedValue<String>> page,
org.mule.runtime.api.metadata.TypedValue<String> rawPage,
HttpResponseAttributes responseAttributes) |
protected void |
HypermediaPagingProvider.onPage(List<org.mule.runtime.api.metadata.TypedValue<String>> page,
org.mule.runtime.api.metadata.TypedValue<String> rawPage,
HttpResponseAttributes responseAttributes) |
protected void |
OffsetPagingProvider.onPage(List<org.mule.runtime.api.metadata.TypedValue<String>> page,
org.mule.runtime.api.metadata.TypedValue<String> rawPage,
HttpResponseAttributes httpResponseAttributes) |
protected void |
PageNumberPagingProvider.onPage(List<org.mule.runtime.api.metadata.TypedValue<String>> page,
org.mule.runtime.api.metadata.TypedValue<String> rawPage,
HttpResponseAttributes httpResponseAttributes) |
protected abstract void |
RestPagingProvider.onPage(List<org.mule.runtime.api.metadata.TypedValue<String>> page,
org.mule.runtime.api.metadata.TypedValue<String> rawPage,
HttpResponseAttributes responseAttributes)
Invoked each time a page is obtained.
|
protected org.mule.runtime.api.el.BindingContext |
HypermediaPagingProvider.toBindingContext(org.mule.runtime.api.metadata.TypedValue<?> content,
HttpResponseAttributes httpResponseAttributes) |
protected org.mule.runtime.api.el.BindingContext |
RestPagingProvider.toBindingContext(org.mule.runtime.api.metadata.TypedValue<?> content,
HttpResponseAttributes httpResponseAttributes) |
| Modifier and Type | Method and Description |
|---|---|
void |
RestPollingSource.onRejectedItem(org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes> result,
org.mule.runtime.extension.api.runtime.source.SourceCallbackContext callbackContext) |
void |
RestPollingSource.poll(org.mule.runtime.extension.api.runtime.source.PollContext<InputStream,HttpResponseAttributes> pollContext) |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes> |
RequestStreamingUtils.doRequest(RestConnection connection,
RestConfiguration config,
RestRequestBuilder requestBuilder,
org.mule.runtime.api.metadata.MediaType mediaType) |
static org.mule.runtime.extension.api.runtime.operation.Result<String,HttpResponseAttributes> |
RequestStreamingUtils.doRequestAndConsumeString(RestConnection connection,
RestConfiguration config,
RestRequestBuilder requestBuilder,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType)
Does a request as specified in the provided request builder using the connection, config and media type provided.
|
static org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes> |
RequestStreamingUtils.doRequestAndConsumeToOfflineStream(RestConnection connection,
RestConfiguration config,
RestRequestBuilder requestBuilder,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType) |
Copyright © 2021. All rights reserved.