|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.AbstractConnector
AbstractConnector provides base functionality for all connectors
provided with Mule. Connectors are the mechanism used to connect to external
systems and protocols in order to send and receive data.
AbstractConnector provides getter and setter methods for endpoint
name, transport name and protocol. It also provides methods to stop and start
connecotors and sets up a dispatcher threadpool which allows deriving connectors
the possibility to dispatch work to separate threads. This functionality is
controlled with the doThreading property on the threadingProfiles for
dispachers and receivers. The lifecycle for a connector is -
| Field Summary | |
protected WaitableBoolean |
connected
|
protected WaitableBoolean |
connecting
|
protected ConnectionStrategy |
connectionStrategy
|
protected boolean |
createMultipleTransactedReceivers
|
static int |
DEFAULT_NUM_CONCURRENT_TX_RECEIVERS
Default number of concurrent transactional receivers. |
protected UMOTransformer |
defaultInboundTransformer
The service descriptor can define a default inbound transformer to be used on an endpoint if no other is set |
protected UMOTransformer |
defaultOutboundTransformer
The service descriptor can define a default outbound transformer to be used on an endpoint if no other is set |
protected UMOTransformer |
defaultResponseTransformer
For some connectors such as http, a response transformer is required or where a replyTo needs a trnasformer |
protected UMOMessageDispatcherFactory |
dispatcherFactory
Factory used to create dispatchers for this connector |
protected GenericKeyedObjectPool |
dispatchers
A pool of dispatchers for this connector, keyed by endpoint |
protected edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean |
disposed
Determines in the connector is alive and well |
protected edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean |
disposing
Determines in connector has been told to dispose |
protected ExceptionListener |
exceptionListener
The exception strategy used by this connector |
protected edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean |
initialised
True once the endpoint has been initialsed |
protected Log |
logger
logger used by this class |
protected String |
name
The name that identifies the endpoint |
protected int |
numberOfConcurrentTransactedReceivers
|
protected edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap |
receivers
The collection of listeners on this connector. |
protected TransportServiceDescriptor |
serviceDescriptor
Holds the service configuration for this connector |
protected Properties |
serviceOverrides
The map of service overrides that can e used to extend the capabilities of the connector |
protected UMOSessionHandler |
sessionHandler
The strategy used for reading and writing session information to and fromt he transport |
protected edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean |
started
Specifies if the endpoint started |
protected WaitableBoolean |
startOnConnect
If the connect method was called via the start method, this will be set so that when the connector comes on line it will be started |
| Fields inherited from interface org.mule.umo.provider.UMOConnector |
INT_VALUE_NOT_SET |
| Constructor Summary | |
AbstractConnector()
Constructs a new AbstractConnector. |
|
| Method Summary | |
protected void |
checkDisposed()
|
void |
connect()
Make the connection to the underlying transport. The fact that this object is connected or not should have no influence on the lifecycle, especially the start / stop state if applicable. |
protected UMOMessageReceiver |
createReceiver(UMOComponent component,
UMOEndpoint endpoint)
Create a Message receiver for this connector |
protected void |
destroyReceiver(UMOMessageReceiver receiver,
UMOEndpoint endpoint)
|
void |
disconnect()
Disconnect the from the underlying transport |
void |
dispatch(UMOImmutableEndpoint endpoint,
UMOEvent event)
Dispatches an event from the endpoint to the external system |
void |
dispose()
A lifecycle method where implementor should free up any resources. If an exception is thrown it should just be logged and processing should continue. This method should not throw Runtime exceptions. |
protected void |
disposeDispatchers()
|
protected void |
disposeReceivers()
|
protected void |
disposeWorkManagers()
|
protected abstract void |
doConnect()
Template method where any connections should be made for the connector |
protected abstract void |
doDisconnect()
Template method where any connected resources used by the connector should be disconnected |
protected abstract void |
doDispose()
Template method to perform any work when destroying the connectoe |
protected abstract void |
doInitialise()
|
protected abstract void |
doStart()
Template method to perform any work when starting the connectoe |
protected abstract void |
doStop()
Template method to perform any work when stopping the connectoe |
void |
exceptionThrown(Exception e)
|
void |
fireNotification(UMOServerNotification notification)
Fires a server notification to all registered CustomNotificationListener
eventManager. |
protected String |
getConnectEventId()
The resource id used when firing ConnectEvents from this connector |
String |
getConnectionDescription()
Returns a string identifying the underlying resource |
ConnectionStrategy |
getConnectionStrategy()
Getter for property 'connectionStrategy'. |
UMOTransformer |
getDefaultInboundTransformer()
Getter for property 'defaultInboundTransformer'. |
UMOTransformer |
getDefaultOutboundTransformer()
Getter for property 'defaultOutboundTransformer'. |
UMOTransformer |
getDefaultResponseTransformer()
Getter for property 'defaultResponseTransformer'. |
UMOMessageDispatcherFactory |
getDispatcherFactory()
The dispatcher factory is used to create a message dispatcher of the current request |
ThreadingProfile |
getDispatcherThreadingProfile()
Getter for property 'dispatcherThreadingProfile'. |
protected UMOWorkManager |
getDispatcherWorkManager()
Returns a work manager for message dispatchers. |
ExceptionListener |
getExceptionListener()
|
int |
getMaxDispatchersActive()
Returns the maximum number of dispatchers that can be concurrently active per endpoint. |
UMOMessageAdapter |
getMessageAdapter(Object message)
Gets a UMOMessageAdapter for the endpoint for the given message
(data) |
String |
getName()
|
int |
getNumberOfConcurrentTransactedReceivers()
Returns the number of concurrent receivers that will be launched when isCreateMultipleTransactedReceivers() returns true. |
OutputStream |
getOutputStream(UMOImmutableEndpoint endpoint,
UMOMessage message)
Will get the output stream for this type of transport. |
UMOMessageReceiver |
getReceiver(UMOComponent component,
UMOEndpoint endpoint)
|
protected Object |
getReceiverKey(UMOComponent component,
UMOEndpoint endpoint)
The method determines the key used to store the receiver against. |
Map |
getReceivers()
Getter for property 'receivers'. |
UMOMessageReceiver[] |
getReceivers(String wildcardExpression)
|
ThreadingProfile |
getReceiverThreadingProfile()
Getter for property 'receiverThreadingProfile'. |
protected UMOWorkManager |
getReceiverWorkManager(String receiverName)
Returns a work manager for message receivers. |
ReplyToHandler |
getReplyToHandler()
Getter for property 'replyToHandler'. |
edu.emory.mathcs.backport.java.util.concurrent.ScheduledExecutorService |
getScheduler()
Returns a Scheduler service for execution of periodic tasks. |
protected TransportServiceDescriptor |
getServiceDescriptor()
Get the TransportServiceDescriptor for this connector. |
Map |
getServiceOverrides()
A map of fully qualified class names that should override those in the connectors' service descriptor This map will be null if there are no overrides |
UMOSessionHandler |
getSessionHandler()
Getter for property 'sessionHandler'. |
UMOStreamMessageAdapter |
getStreamMessageAdapter(InputStream in,
OutputStream out)
Gets a UMOStreamMessageAdapter from the connector for the given
message. |
List |
getSupportedProtocols()
Returns an unmodifiable list of the protocols supported by this connector |
void |
handleException(Exception exception)
|
protected void |
handleWorkException(WorkEvent event,
String type)
|
protected void |
initFromServiceDescriptor()
Initialises this connector from its TransportServiceDescriptor This
will be called before the doInitialise() method is called. |
void |
initialise()
Method used to perform any initialisation work. If a fatal error occurs during initialisation an InitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down. |
void |
initialiseFromUrl(UMOEndpointURI endpointUri)
When this connector is created via the TransportFactory the endpoint used to
determine the connector type is passed to this method so that any properties
set on the endpoint that can be used to initialise the connector are made
available. |
boolean |
isConnected()
Determines if this object is connected or not |
boolean |
isCreateMultipleTransactedReceivers()
For better throughput when using TransactedMessageReceivers this will enable a number of concurrent receivers, based on the value returned by getNumberOfConcurrentTransactedReceivers(). |
boolean |
isDisposed()
|
boolean |
isDisposing()
|
boolean |
isEnableMessageEvents()
Whether to fire message notifications for every message that is sent or received from this connector |
boolean |
isRemoteSyncEnabled()
|
boolean |
isStarted()
|
UMOMessageReceiver |
lookupReceiver(String key)
|
UMOMessage |
receive(UMOEndpointURI endpointUri,
long timeout)
Make a specific request to the underlying transport |
UMOMessage |
receive(UMOImmutableEndpoint endpoint,
long timeout)
Make a specific request to the underlying transport |
UMOMessageReceiver |
registerListener(UMOComponent component,
UMOEndpoint endpoint)
This creates a UMOMessageReceiver associated with this endpoint
and registers it with the connector. |
void |
registerSupportedProtocol(String protocol)
Registers other protocols 'understood' by this connector. |
protected void |
registerSupportedProtocolWithoutPrefix(String protocol)
Registers other protocols 'understood' by this connector. |
UMOMessage |
send(UMOImmutableEndpoint endpoint,
UMOEvent event)
Sends an event from the endpoint to the external system |
void |
setConnectionStrategy(ConnectionStrategy connectionStrategy)
Setter for property 'connectionStrategy'. |
void |
setCreateMultipleTransactedReceivers(boolean createMultipleTransactedReceivers)
|
void |
setDefaultInboundTransformer(UMOTransformer defaultInboundTransformer)
Setter for property 'defaultInboundTransformer'. |
void |
setDefaultOutboundTransformer(UMOTransformer defaultOutboundTransformer)
Setter for property 'defaultOutboundTransformer'. |
void |
setDefaultResponseTransformer(UMOTransformer defaultResponseTransformer)
Setter for property 'defaultResponseTransformer'. |
void |
setDispatcherFactory(UMOMessageDispatcherFactory dispatcherFactory)
The dispatcher factory is used to create a message dispatcher of the current request |
void |
setDispatcherThreadingProfile(ThreadingProfile dispatcherThreadingProfile)
Setter for property 'dispatcherThreadingProfile'. |
void |
setEnableMessageEvents(boolean enableMessageEvents)
Whether to fire message notifications for every message that is sent or received from this connector |
void |
setExceptionListener(ExceptionListener listener)
|
void |
setMaxDispatchersActive(int maxActive)
Configures the maximum number of dispatchers that can be concurrently active per endpoint |
void |
setName(String newName)
|
void |
setNumberOfConcurrentTransactedReceivers(int count)
|
void |
setReceiverThreadingProfile(ThreadingProfile receiverThreadingProfile)
Setter for property 'receiverThreadingProfile'. |
void |
setServiceOverrides(Map serviceOverrides)
Set the Service overrides on this connector. |
void |
setSessionHandler(UMOSessionHandler sessionHandler)
Setter for property 'sessionHandler'. |
void |
setSupportedProtocols(List supportedProtocols)
Sets A list of protocols that the connector can accept |
void |
startConnector()
|
void |
stopConnector()
|
boolean |
supportsProtocol(String protocol)
|
String |
toString()
|
void |
unregisterListener(UMOComponent component,
UMOEndpoint endpoint)
|
void |
unregisterSupportedProtocol(String protocol)
|
void |
workAccepted(WorkEvent event)
|
void |
workCompleted(WorkEvent event)
|
void |
workRejected(WorkEvent event)
|
void |
workStarted(WorkEvent event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mule.umo.provider.UMOConnector |
getProtocol |
| Field Detail |
public static final int DEFAULT_NUM_CONCURRENT_TX_RECEIVERS
protected final Log logger
protected final edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean started
protected final edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean initialised
protected volatile String name
protected volatile ExceptionListener exceptionListener
protected final edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean disposed
protected final edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicBoolean disposing
protected volatile UMOMessageDispatcherFactory dispatcherFactory
protected final GenericKeyedObjectPool dispatchers
protected final edu.emory.mathcs.backport.java.util.concurrent.ConcurrentMap receivers
protected volatile boolean createMultipleTransactedReceivers
{@link #isCreateMultipleTransactedReceivers()}protected volatile int numberOfConcurrentTransactedReceivers
{@link #getNumberOfConcurrentTransactedReceivers()}protected volatile UMOTransformer defaultInboundTransformer
protected volatile UMOTransformer defaultOutboundTransformer
protected volatile UMOTransformer defaultResponseTransformer
protected volatile ConnectionStrategy connectionStrategy
protected final WaitableBoolean connected
protected final WaitableBoolean connecting
protected final WaitableBoolean startOnConnect
protected volatile TransportServiceDescriptor serviceDescriptor
protected volatile Properties serviceOverrides
protected volatile UMOSessionHandler sessionHandler
| Constructor Detail |
public AbstractConnector()
| Method Detail |
public String getName()
getName in interface UMOConnectorpublic void setName(String newName)
setName in interface UMOConnectornewName - the name to associate with the connector
public final void initialise()
throws InitialisationException
InitialisationException should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule
instance to shutdown
public final void startConnector()
throws UMOException
startConnector in interface UMOConnectorUMOExceptionpublic boolean isStarted()
isStarted in interface UMOConnector
public final void stopConnector()
throws UMOException
stopConnector in interface UMOConnectorUMOExceptionpublic final void dispose()
dispose in interface Disposableprotected void disposeWorkManagers()
protected void disposeReceivers()
protected void disposeDispatchers()
public boolean isDisposed()
isDisposed in interface UMOConnectorpublic void handleException(Exception exception)
handleException in interface UMOConnectorexception - the exception that was caughtpublic void exceptionThrown(Exception e)
exceptionThrown in interface ExceptionListenerpublic ExceptionListener getExceptionListener()
getExceptionListener in interface UMOConnectorExceptionListenerpublic void setExceptionListener(ExceptionListener listener)
setExceptionListener in interface UMOConnectorlistener - the ExceptionStrategy to use with this endpointExceptionListenerpublic UMOMessageDispatcherFactory getDispatcherFactory()
UMOConnector
getDispatcherFactory in interface UMOConnectorpublic void setDispatcherFactory(UMOMessageDispatcherFactory dispatcherFactory)
UMOConnector
setDispatcherFactory in interface UMOConnectordispatcherFactory - The dispatcherFactory to set.public int getMaxDispatchersActive()
public void setMaxDispatchersActive(int maxActive)
maxActive - max. number of active dispatchers
protected void checkDisposed()
throws DisposeException
DisposeException
public UMOMessageReceiver registerListener(UMOComponent component,
UMOEndpoint endpoint)
throws Exception
UMOMessageReceiver associated with this endpoint
and registers it with the connector.
registerListener in interface UMOConnectorcomponent - the listening componentendpoint - the endpoint contains the listener endpointUri on which to
listen on.
Exception - if the UMOMessageReceiver cannot be created or the Receiver
cannot be registered
protected Object getReceiverKey(UMOComponent component,
UMOEndpoint endpoint)
component - the component for which the endpoint is being registeredendpoint - the endpoint being registered for the component
public final void unregisterListener(UMOComponent component,
UMOEndpoint endpoint)
throws Exception
unregisterListener in interface UMOConnectorcomponent - the listening componentendpoint - the associated endpointDescriptor with the listener
Exception - if the listener cannot be unregistered. If a listener is not
associated with the given endpoint this will not throw an
exceptionpublic ThreadingProfile getDispatcherThreadingProfile()
public void setDispatcherThreadingProfile(ThreadingProfile dispatcherThreadingProfile)
dispatcherThreadingProfile - Value to set for property
'dispatcherThreadingProfile'.public ThreadingProfile getReceiverThreadingProfile()
public void setReceiverThreadingProfile(ThreadingProfile receiverThreadingProfile)
receiverThreadingProfile - Value to set for property
'receiverThreadingProfile'.
protected void destroyReceiver(UMOMessageReceiver receiver,
UMOEndpoint endpoint)
throws Exception
Exception
protected abstract void doInitialise()
throws InitialisationException
InitialisationExceptionprotected abstract void doDispose()
protected abstract void doStart()
throws UMOException
UMOException - if the method fails
protected abstract void doStop()
throws UMOException
UMOException - if the method failspublic UMOTransformer getDefaultInboundTransformer()
public void setDefaultInboundTransformer(UMOTransformer defaultInboundTransformer)
defaultInboundTransformer - Value to set for property
'defaultInboundTransformer'.public UMOTransformer getDefaultResponseTransformer()
public UMOTransformer getDefaultOutboundTransformer()
public void setDefaultOutboundTransformer(UMOTransformer defaultOutboundTransformer)
defaultOutboundTransformer - Value to set for property
'defaultOutboundTransformer'.public void setDefaultResponseTransformer(UMOTransformer defaultResponseTransformer)
defaultResponseTransformer - Value to set for property
'defaultResponseTransformer'.public ReplyToHandler getReplyToHandler()
public void fireNotification(UMOServerNotification notification)
CustomNotificationListener
eventManager.
notification - the notification to fire. This must be of type
CustomNotification
otherwise an exception will be thrown.
UnsupportedOperationException - if the notification fired is not a
CustomNotificationpublic ConnectionStrategy getConnectionStrategy()
public void setConnectionStrategy(ConnectionStrategy connectionStrategy)
connectionStrategy - Value to set for property 'connectionStrategy'.public boolean isDisposing()
isDisposing in interface UMOConnectorpublic boolean isRemoteSyncEnabled()
isRemoteSyncEnabled in interface UMOConnector
public UMOMessageReceiver getReceiver(UMOComponent component,
UMOEndpoint endpoint)
public Map getReceivers()
public UMOMessageReceiver lookupReceiver(String key)
public UMOMessageReceiver[] getReceivers(String wildcardExpression)
public void connect()
throws Exception
connect in interface UMOConnectableException
public void disconnect()
throws Exception
disconnect in interface UMOConnectableExceptionpublic String getConnectionDescription()
getConnectionDescription in interface UMOConnectablepublic final boolean isConnected()
isConnected in interface UMOConnectable
protected abstract void doConnect()
throws Exception
Exception
protected abstract void doDisconnect()
throws Exception
Exceptionprotected String getConnectEventId()
public boolean isCreateMultipleTransactedReceivers()
getNumberOfConcurrentTransactedReceivers(). This property is used by
transports that support transactions, specifically receivers that extend the
TransactedPollingMessageReceiver.
public void setCreateMultipleTransactedReceivers(boolean createMultipleTransactedReceivers)
createMultipleTransactedReceivers - if true, multiple receivers will be
created for this connection{@link #isCreateMultipleTransactedReceivers()}public int getNumberOfConcurrentTransactedReceivers()
isCreateMultipleTransactedReceivers() returns true.
DEFAULT_NUM_CONCURRENT_TX_RECEIVERSpublic void setNumberOfConcurrentTransactedReceivers(int count)
count - the number of concurrent transacted receivers to start{@link #getNumberOfConcurrentTransactedReceivers()}public boolean isEnableMessageEvents()
public void setEnableMessageEvents(boolean enableMessageEvents)
enableMessageEvents - public void registerSupportedProtocol(String protocol)
protocol - the supported protocol to registerprotected void registerSupportedProtocolWithoutPrefix(String protocol)
registerSupportedProtocol(String) method,
this allows you to register protocols that are not prefixed with the connector
protocol. This is useful where you use a Service Finder to discover which
Transport implementation to use. For example the 'wsdl' transport is a generic
'finder' transport that will use Axis, Xfire or Glue to create the WSDL
client. These transport protocols would be wsdl-axis, wsdl-xfire and
wsdl-glue, but they can all support 'wsdl' protocol too.
protocol - the supported protocol to registerpublic void unregisterSupportedProtocol(String protocol)
public boolean supportsProtocol(String protocol)
supportsProtocol in interface UMOConnectorprotocol - protocol name
public List getSupportedProtocols()
public void setSupportedProtocols(List supportedProtocols)
supportedProtocols -
protected UMOWorkManager getReceiverWorkManager(String receiverName)
throws UMOException
UMOException
protected UMOWorkManager getDispatcherWorkManager()
throws UMOException
UMOException - in case of errorpublic edu.emory.mathcs.backport.java.util.concurrent.ScheduledExecutorService getScheduler()
getScheduler in interface UMOConnectorpublic UMOSessionHandler getSessionHandler()
public void setSessionHandler(UMOSessionHandler sessionHandler)
sessionHandler - Value to set for property 'sessionHandler'.public void workAccepted(WorkEvent event)
workAccepted in interface WorkListenerpublic void workRejected(WorkEvent event)
workRejected in interface WorkListenerpublic void workStarted(WorkEvent event)
workStarted in interface WorkListenerpublic void workCompleted(WorkEvent event)
workCompleted in interface WorkListener
protected void handleWorkException(WorkEvent event,
String type)
public void dispatch(UMOImmutableEndpoint endpoint,
UMOEvent event)
throws DispatchException
dispatch in interface UMOConnectorevent - The event to dispatchendpoint - endpoint to dispatch from
DispatchException - if the event fails to be dispatched
public UMOMessage receive(UMOEndpointURI endpointUri,
long timeout)
throws Exception
receive in interface UMOConnectorendpointUri - the endpoint URI to use when connecting to the resourcetimeout - the maximum time the operation should block before returning.
The call should return immediately if there is data available. If
no data becomes available before the timeout elapses, null will be
returned
Exception - if the call to the underlying protocal cuases an exception
public UMOMessage receive(UMOImmutableEndpoint endpoint,
long timeout)
throws Exception
receive in interface UMOConnectorendpoint - the endpoint to use when connecting to the resourcetimeout - the maximum time the operation should block before returning.
The call should return immediately if there is data available. If
no data becomes available before the timeout elapses, null will be
returned
Exception - if the call to the underlying protocal cuases an exception
public UMOMessage send(UMOImmutableEndpoint endpoint,
UMOEvent event)
throws DispatchException
send in interface UMOConnectorevent - The event to sendendpoint - endpoint to send from
DispatchException - if the event fails to be dispatched
public void initialiseFromUrl(UMOEndpointURI endpointUri)
throws InitialisationException
TransportFactory the endpoint used to
determine the connector type is passed to this method so that any properties
set on the endpoint that can be used to initialise the connector are made
available.
endpointUri - the UMOEndpointURI use to create this connector
InitialisationException - If there are any problems with the
configuration set on the Endpoint or if another exception is
thrown it is wrapped in an InitialisationException.
protected void initFromServiceDescriptor()
throws InitialisationException
TransportServiceDescriptor This
will be called before the doInitialise() method is called.
InitialisationException - InitialisationException If there are any
problems with the configuration or if another exception is thrown
it is wrapped in an InitialisationException.protected TransportServiceDescriptor getServiceDescriptor()
TransportServiceDescriptor for this connector. This will be
null if the connector was created by the developer. To create a connector the
proper way the developer should use the TransportFactory and pass in
an endpoint.
TransportServiceDescriptor for this connector
protected UMOMessageReceiver createReceiver(UMOComponent component,
UMOEndpoint endpoint)
throws Exception
component - the component that will receive events from this receiver,
the listenerendpoint - the endpoint that defies this inbound communication
TransportServiceDescriptor
initialised using the component and endpoint.
Exception - if there is a problem creating the receiver. This exception
really depends on the underlying transport, thus any exception
could be thrown
public UMOMessageAdapter getMessageAdapter(Object message)
throws MessagingException
UMOMessageAdapter for the endpoint for the given message
(data)
getMessageAdapter in interface UMOConnectormessage - the data with which to initialise the
UMOMessageAdapter
UMOMessageAdapter for the endpoint
MessagingException - if the message parameter is not
supportedUMOMessageAdapter
public UMOStreamMessageAdapter getStreamMessageAdapter(InputStream in,
OutputStream out)
throws MessagingException
UMOStreamMessageAdapter from the connector for the given
message. This Adapter will correctly handle data streaming for this type of
connector
getStreamMessageAdapter in interface UMOConnectorin - the input stream to read the data fromout - the outputStream to write data to. This can be null.
UMOStreamMessageAdapter for the endpoint
MessagingException - if the message parameter is not supportedUMOStreamMessageAdapterpublic Map getServiceOverrides()
public void setServiceOverrides(Map serviceOverrides)
serviceOverrides - the override values to use
public OutputStream getOutputStream(UMOImmutableEndpoint endpoint,
UMOMessage message)
throws UMOException
UnsupportedOperationException
is thrown. Note that the stream MUST release resources on close. For help doing so, see
CallbackOutputStream.
getOutputStream in interface UMOConnectorendpoint - the endpoint that releates to this Dispatchermessage - the current message being processed
UMOException - in case of any errorpublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||