public class BearerRestConnection extends DefaultRestConnection
DefaultRestConnection for resources protected with Bearer, regardless of the grant type.| Constructor and Description |
|---|
BearerRestConnection(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.client.HttpRequestOptions httpRequestOptions,
String baseUri,
org.mule.runtime.api.el.ExpressionLanguage expressionLanguage,
String token) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticate(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder httpRequestBuilder)
Allows to different type of connections to intercept the request before sending the HTTP call.
|
createModuleException, httpResponseToErrorTypeDefinition, materializeHttpResponseEntity, toConnectivityErrorFunctionbeforeRequest, getBaseUri, getCommonsExpressionLanguage, getExpressionLanguage, getHttpClient, getHttpRequestOptions, getMediaType, send, sendAsync, throwModuleExceptionIfErrorResponse, toResult, validateprotected void authenticate(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder httpRequestBuilder)
BaseRestConnectionauthenticate in class BaseRestConnection<org.mule.runtime.extension.api.exception.ModuleException,org.mule.runtime.extension.api.error.ErrorTypeDefinition<RestError>>httpRequestBuilder - HttpRequestBuilder populated with the values from the original HttpRequest.Copyright © 2023. All rights reserved.