public class RequestStreamingUtils extends Object
| Constructor and Description |
|---|
RequestStreamingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes> |
doRequest(RestConnection connection,
RestConfiguration config,
RestRequestBuilder requestBuilder,
org.mule.runtime.api.metadata.MediaType mediaType) |
static org.mule.runtime.extension.api.runtime.operation.Result<org.mule.runtime.api.metadata.TypedValue<String>,HttpResponseAttributes> |
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.api.metadata.TypedValue<org.mule.runtime.api.streaming.bytes.CursorStreamProvider> |
getCursorStreamProviderValueFromSplitResult(org.mule.runtime.api.metadata.TypedValue<?> typedValue)
Takes the result that a DW split would generate as input and generates a CursorStreamProvider that allows handling it easily.
|
public static org.mule.runtime.extension.api.runtime.operation.Result<org.mule.runtime.api.metadata.TypedValue<String>,HttpResponseAttributes> doRequestAndConsumeString(RestConnection connection, RestConfiguration config, RestRequestBuilder requestBuilder, org.mule.runtime.api.metadata.MediaType defaultResponseMediaType)
connection - The connection that will make the request.config - The config from where settings will be extracted for the request.requestBuilder - The request builder for the request this method should do.defaultResponseMediaType - The default response media type, will be overwritten by the actual response media type if
provided in the server response.public static org.mule.runtime.extension.api.runtime.operation.Result<InputStream,HttpResponseAttributes> doRequest(RestConnection connection, RestConfiguration config, RestRequestBuilder requestBuilder, org.mule.runtime.api.metadata.MediaType mediaType)
public static org.mule.runtime.api.metadata.TypedValue<org.mule.runtime.api.streaming.bytes.CursorStreamProvider> getCursorStreamProviderValueFromSplitResult(org.mule.runtime.api.metadata.TypedValue<?> typedValue)
typedValue - The result from a DW splitCopyright © 2021. All rights reserved.