public abstract class AbstractConnectionProvider extends Object implements org.mule.runtime.api.connection.CachedConnectionProvider<CloudHubConnection>, org.mule.runtime.api.lifecycle.Startable, org.mule.runtime.api.lifecycle.Stoppable
CloudHubConnection.| Modifier and Type | Field and Description |
|---|---|
protected String |
anypointPlatformUrl
This is used to change between the US and EU Anypoint Platform if is required.
|
protected org.mule.runtime.http.api.client.HttpClient |
httpClient |
protected org.mule.runtime.http.api.HttpService |
httpService |
protected org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract CloudHubConnection |
connect() |
protected org.mule.runtime.http.api.client.HttpClient |
createClient(org.mule.runtime.http.api.HttpService httpService) |
void |
disconnect(CloudHubConnection connection) |
void |
start() |
void |
stop() |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(CloudHubConnection connection) |
protected final org.slf4j.Logger LOGGER
@Parameter @Optional(defaultValue="https://anypoint.mulesoft.com") @Placement(tab="Advanced") @OfValues(value=AnypointPlatformUrlValueProvider.class) @DisplayName(value="Anypoint Platform URL") protected String anypointPlatformUrl
@Inject protected org.mule.runtime.http.api.HttpService httpService
protected org.mule.runtime.http.api.client.HttpClient httpClient
public abstract CloudHubConnection connect()
connect in interface org.mule.runtime.api.connection.ConnectionProvider<CloudHubConnection>public void disconnect(CloudHubConnection connection)
disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<CloudHubConnection>public org.mule.runtime.api.connection.ConnectionValidationResult validate(CloudHubConnection connection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<CloudHubConnection>protected org.mule.runtime.http.api.client.HttpClient createClient(org.mule.runtime.http.api.HttpService httpService)
public void start()
start in interface org.mule.runtime.api.lifecycle.Startablepublic void stop()
stop in interface org.mule.runtime.api.lifecycle.StoppableCopyright © 2023 MuleSoft, Inc.. All rights reserved.