public abstract class AbstractHttpConnectionProvider<C extends ConnectorHttpConnection,P extends ConnectionParameterGroup> extends Object implements com.mulesoft.connectors.commons.template.connection.provider.ConnectorConnectionProvider<C>, org.mule.runtime.api.lifecycle.Initialisable
| Constructor and Description |
|---|
AbstractHttpConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
C |
connect() |
protected abstract org.mule.runtime.http.api.client.auth.HttpAuthentication |
getAuthentication(org.mule.runtime.http.api.client.HttpClient httpClient) |
protected abstract org.mule.runtime.api.util.MultiMap<String,String> |
getAuthorizationHeaders(org.mule.runtime.http.api.client.HttpClient httpClient) |
protected abstract org.mule.commons.atlantic.lambda.function.TriFunction<org.mule.runtime.http.api.client.HttpClient,org.mule.runtime.http.api.client.auth.HttpAuthentication,org.mule.runtime.api.util.MultiMap<String,String>,C> |
getConnectionConstructor() |
protected abstract P |
getConnectionParams() |
void |
initialise() |
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected abstract org.mule.commons.atlantic.lambda.function.TriFunction<org.mule.runtime.http.api.client.HttpClient,org.mule.runtime.http.api.client.auth.HttpAuthentication,org.mule.runtime.api.util.MultiMap<String,String>,C> getConnectionConstructor()
protected abstract org.mule.runtime.api.util.MultiMap<String,String> getAuthorizationHeaders(org.mule.runtime.http.api.client.HttpClient httpClient) throws org.mule.runtime.api.connection.ConnectionException
org.mule.runtime.api.connection.ConnectionExceptionprotected abstract org.mule.runtime.http.api.client.auth.HttpAuthentication getAuthentication(org.mule.runtime.http.api.client.HttpClient httpClient)
throws org.mule.runtime.api.connection.ConnectionException
org.mule.runtime.api.connection.ConnectionExceptionprotected abstract P getConnectionParams()
public C connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<C extends ConnectorHttpConnection>org.mule.runtime.api.connection.ConnectionExceptionCopyright © 2018. All rights reserved.