|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.AbstractConnector
org.mule.tck.testmodels.mule.TestConnector
TestConnector use a mock connector
| Nested Class Summary | |
class |
TestConnector.DummyMessageAdapter
|
| Field Summary |
| Fields inherited from interface org.mule.umo.provider.UMOConnector |
INT_VALUE_NOT_SET |
| Constructor Summary | |
TestConnector()
|
|
| Method Summary | |
UMOMessageReceiver |
createReceiver(UMOComponent component,
UMOEndpoint endpoint)
Create a Message receiver for this connector |
void |
destroyReceiver(UMOMessageReceiver receiver,
UMOEndpoint endpoint)
|
protected void |
doConnect()
Template method where any connections should be made for the connector |
protected void |
doDisconnect()
Template method where any connected resources used by the connector should be disconnected |
protected void |
doDispose()
Template method to perform any work when destroying the connectoe |
protected void |
doInitialise()
|
protected void |
doStart()
Template method to perform any work when starting the connectoe |
protected void |
doStop()
Template method to perform any work when stopping the connectoe |
UMOMessageAdapter |
getMessageAdapter(Object message)
Gets a UMOMessageAdapter for the endpoint for the given message
(data) |
String |
getProtocol()
|
UMOStreamMessageAdapter |
getStreamMessageAdapter(InputStream in,
OutputStream out)
Gets a UMOStreamMessageAdapter from the connector for the given
message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TestConnector()
| Method Detail |
protected void doInitialise()
throws InitialisationException
doInitialise in class AbstractConnectorInitialisationExceptionprotected void doDispose()
AbstractConnector
doDispose in class AbstractConnector
protected void doConnect()
throws Exception
AbstractConnector
doConnect in class AbstractConnectorException
protected void doDisconnect()
throws Exception
AbstractConnector
doDisconnect in class AbstractConnectorException
protected void doStart()
throws UMOException
AbstractConnector
doStart in class AbstractConnectorUMOException - if the method fails
protected void doStop()
throws UMOException
AbstractConnector
doStop in class AbstractConnectorUMOException - if the method failspublic String getProtocol()
public UMOMessageAdapter getMessageAdapter(Object message)
throws MessagingException
AbstractConnectorUMOMessageAdapter for the endpoint for the given message
(data)
getMessageAdapter in interface UMOConnectorgetMessageAdapter in class AbstractConnectormessage - 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
AbstractConnectorUMOStreamMessageAdapter from the connector for the given
message. This Adapter will correctly handle data streaming for this type of
connector
getStreamMessageAdapter in interface UMOConnectorgetStreamMessageAdapter in class AbstractConnectorin - 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 supportedUMOStreamMessageAdapter
public UMOMessageReceiver createReceiver(UMOComponent component,
UMOEndpoint endpoint)
throws Exception
AbstractConnector
createReceiver in class AbstractConnectorcomponent - 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 void destroyReceiver(UMOMessageReceiver receiver,
UMOEndpoint endpoint)
throws Exception
destroyReceiver in class AbstractConnectorException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||