public class DefaultHttpMessageDispatcherProvider extends Object implements MessageDispatcherProvider<MessageDispatcher>, Lifecycle
MessageDispatcherProvider
sends a soap message over http using a default configuration.PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
DefaultHttpMessageDispatcherProvider() |
Modifier and Type | Method and Description |
---|---|
MessageDispatcher |
connect()
Creates a new connection.
|
void |
disconnect(MessageDispatcher connection)
Disposes the given
connection , freeing all its allocated resources |
void |
dispose()
A lifecycle method where implementor should free up any resources.
|
void |
initialise()
Method used to perform any initialisation work.
|
void |
start() |
void |
stop() |
ConnectionValidationResult |
validate(MessageDispatcher connection)
Validates the given
C . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
public DefaultHttpMessageDispatcherProvider()
public MessageDispatcher connect() throws ConnectionException
ConnectionProvider
The returned connection is expected to be ready to use
connect
in interface ConnectionProvider<MessageDispatcher>
Connection
ConnectionException
public void disconnect(MessageDispatcher connection)
ConnectionProvider
connection
, freeing all its allocated resourcesdisconnect
in interface ConnectionProvider<MessageDispatcher>
connection
- a non null
Connection
.public ConnectionValidationResult validate(MessageDispatcher connection)
MessageDispatcherProvider
C
.
In invalid connection case, the ConnectionValidationResult
should also return a valid
message ConnectionValidationResult.getMessage()
, exception ConnectionValidationResult.getException()
and code ConnectionValidationResult.getErrorType()
validate
in interface ConnectionProvider<MessageDispatcher>
validate
in interface MessageDispatcherProvider<MessageDispatcher>
connection
- a non null
C
.ConnectionValidationResult
indicating if the connection
is valid or not.public void dispose()
Disposable
dispose
in interface Disposable
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown.
In case that the Initialisable.initialise()
method execution fails then mule will call the Disposable.dispose()
method if
the class also implements Disposable
allowing the object to dispose any allocated resource during
Initialisable.initialise()
initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownDisposable
public void stop() throws MuleException
stop
in interface Stoppable
MuleException
public void start() throws MuleException
start
in interface Startable
MuleException
Copyright © 2018. All rights reserved.