public abstract class BaseBasicAuthenticationConnectionProvider<C extends DefaultRestConnection> extends RestConnectionProvider<C>
RestConnections that authenticate using Basic mechanism.httpService| Constructor and Description |
|---|
BaseBasicAuthenticationConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected org.mule.runtime.http.api.client.auth.HttpAuthentication |
buildAuthentication() |
protected C |
createConnection(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.client.HttpRequestOptions httpRequestOptions)
Creates a new connection
C |
protected abstract String |
getPassword() |
protected abstract String |
getUsername() |
configureClient, connect, disconnect, getBaseUri, getResponseTimeout, initialise, isFollowsRedirect, start, stoppublic BaseBasicAuthenticationConnectionProvider()
protected abstract String getUsername()
protected abstract String getPassword()
protected final org.mule.runtime.http.api.client.auth.HttpAuthentication buildAuthentication()
buildAuthentication in class RestConnectionProvider<C extends DefaultRestConnection>HttpAuthentication defined by the connection provider or null. This allows implementations to
support custom authentications by defining at the implementation class the parameters for filling the authentication.protected C createConnection(org.mule.runtime.http.api.client.HttpClient httpClient, org.mule.runtime.http.api.client.HttpRequestOptions httpRequestOptions)
RestConnectionProviderCcreateConnection in class RestConnectionProvider<C extends DefaultRestConnection>httpClient - the client to perform the requests.httpRequestOptions - the options for the http request client to perfom the requests.CCopyright © 2022. All rights reserved.