public class ForwardingSoapClientConnectionProvider extends Object implements org.mule.runtime.api.connection.ConnectionProvider<ForwardingSoapClient>, org.mule.runtime.api.lifecycle.Lifecycle
ConnectionProvider implementation that handles ForwardingSoapClient connections, which are created from a
List of WebServiceDefinitions. Each WebServiceDefinition describe one service with which instances
created by this provider will be capable to connect to.
This Provider centralize the logic and polling mechanism to provision and release connection for each of the clients that required to be created, while remaining abstracted from the concerns of actually manage those connections.
| Modifier and Type | Method and Description |
|---|---|
ForwardingSoapClient |
connect() |
void |
disconnect(ForwardingSoapClient connection)
Disconnects a
ForwardingSoapClient connection, by shutting down each one of the services that the provided instance
manages. |
void |
dispose() |
void |
initialise() |
void |
start() |
void |
stop() |
org.mule.runtime.api.connection.ConnectionValidationResult |
validate(ForwardingSoapClient connection) |
public ForwardingSoapClient connect() throws org.mule.runtime.api.connection.ConnectionException
connect in interface org.mule.runtime.api.connection.ConnectionProvider<ForwardingSoapClient>ForwardingSoapClient instance.org.mule.runtime.api.connection.ConnectionException - in any error case.public void disconnect(ForwardingSoapClient connection)
ForwardingSoapClient connection, by shutting down each one of the services that the provided instance
manages.disconnect in interface org.mule.runtime.api.connection.ConnectionProvider<ForwardingSoapClient>connection - a ForwardingSoapClient instance to disconnect,public org.mule.runtime.api.connection.ConnectionValidationResult validate(ForwardingSoapClient connection)
validate in interface org.mule.runtime.api.connection.ConnectionProvider<ForwardingSoapClient>public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void dispose()
dispose in interface org.mule.runtime.api.lifecycle.Disposablepublic void stop()
throws org.mule.runtime.api.exception.MuleException
stop in interface org.mule.runtime.api.lifecycle.Stoppableorg.mule.runtime.api.exception.MuleExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2021 MuleSoft, Inc.. All rights reserved.