public class ExtendedOAuthRestConnection
extends com.mulesoft.connectivity.rest.commons.api.connection.oauth.OAuthRestConnection
OAuthRestConnection to also accept HttpRequestBuilder
This is useful for sending Multipart requests| Constructor and Description |
|---|
ExtendedOAuthRestConnection(String baseUri,
String configName,
org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.client.auth.HttpAuthentication authentication,
org.mule.runtime.api.util.MultiMap<String,String> defaultQueryParams,
org.mule.runtime.api.util.MultiMap<String,String> defaultHeaders,
org.mule.runtime.extension.api.connectivity.oauth.OAuthState oauthState,
String resourceOwnerId,
org.mule.runtime.api.el.ExpressionLanguage expressionLanguage,
String refreshTokenCondition) |
| Modifier and Type | Method and Description |
|---|---|
<T> org.mule.runtime.api.metadata.TypedValue<T> |
applyExpression(String expression,
org.mule.runtime.api.metadata.TypedValue<?> payload) |
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> |
request(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder requestBuilder,
int responseTimeoutMillis,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) |
CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> |
request(org.mule.runtime.http.api.domain.message.request.HttpRequest request,
int responseTimeoutMillis,
org.mule.runtime.api.metadata.MediaType defaultResponseMediaType,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) |
buildRequest, getRefreshTokenCondition, handleResponseErrorpublic ExtendedOAuthRestConnection(String baseUri, String configName, org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.runtime.http.api.client.auth.HttpAuthentication authentication, org.mule.runtime.api.util.MultiMap<String,String> defaultQueryParams, org.mule.runtime.api.util.MultiMap<String,String> defaultHeaders, org.mule.runtime.extension.api.connectivity.oauth.OAuthState oauthState, String resourceOwnerId, org.mule.runtime.api.el.ExpressionLanguage expressionLanguage, String refreshTokenCondition)
public CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> request(org.mule.runtime.http.api.domain.message.request.HttpRequest request, int responseTimeoutMillis, org.mule.runtime.api.metadata.MediaType defaultResponseMediaType, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
public CompletableFuture<org.mule.runtime.extension.api.runtime.operation.Result<InputStream,com.mulesoft.connectivity.rest.commons.api.operation.HttpResponseAttributes>> request(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder requestBuilder, int responseTimeoutMillis, org.mule.runtime.api.metadata.MediaType defaultResponseMediaType, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
public <T> org.mule.runtime.api.metadata.TypedValue<T> applyExpression(String expression, org.mule.runtime.api.metadata.TypedValue<?> payload)
Copyright © 2023 MuleSoft, Inc.. All rights reserved.