org.mule.transport.stdio
Class StdioMessageDispatcher
java.lang.Object
org.mule.transport.AbstractConnectable
org.mule.transport.AbstractMessageDispatcher
org.mule.transport.stdio.StdioMessageDispatcher
- All Implemented Interfaces:
- ExceptionListener, org.mule.api.lifecycle.Disposable, org.mule.api.transport.Connectable, org.mule.api.transport.MessageDispatcher, org.mule.api.transport.MessageDispatching
public class StdioMessageDispatcher
- extends org.mule.transport.AbstractMessageDispatcher
StdioMessageDispatcher is a simple stream dispatcher that obtains
a stream from the Stream Connector to write to. This is only really useful for
testing purposes right now when writing to System.in and System.out. However, it
is feasible to set any OutputStream on the Stream connector and have that written
to.
| Fields inherited from class org.mule.transport.AbstractConnectable |
connected, connecting, connectionStrategy, disposed, endpoint, logger, workManager |
| Fields inherited from interface org.mule.api.lifecycle.Disposable |
PHASE_NAME |
| Fields inherited from interface org.mule.api.transport.MessageDispatching |
RECEIVE_NO_WAIT, RECEIVE_WAIT_INDEFINITELY |
| Methods inherited from class org.mule.transport.AbstractMessageDispatcher |
dispatch, isTransactionRollback, send, useRemoteSync |
| Methods inherited from class org.mule.transport.AbstractConnectable |
activate, connect, disconnect, dispose, disposeAndLogException, exceptionThrown, getConnectEventId, getConnectionDescription, getConnector, getEndpoint, isConnected, isDoThreading, passivate, reconnect, toString, validate |
| Methods inherited from interface org.mule.api.transport.MessageDispatcher |
activate, getConnector, passivate, validate |
| Methods inherited from interface org.mule.api.lifecycle.Disposable |
dispose |
| Methods inherited from interface org.mule.api.transport.Connectable |
connect, disconnect, getConnectionDescription, isConnected |
StdioMessageDispatcher
public StdioMessageDispatcher(org.mule.api.endpoint.ImmutableEndpoint endpoint)
doDispatch
protected void doDispatch(org.mule.api.MuleEvent event)
throws Exception
- Specified by:
doDispatch in class org.mule.transport.AbstractMessageDispatcher
- Throws:
Exception
doSend
protected org.mule.api.MuleMessage doSend(org.mule.api.MuleEvent event)
throws Exception
- Specified by:
doSend in class org.mule.transport.AbstractMessageDispatcher
- Throws:
Exception
doDispose
protected void doDispose()
- Specified by:
doDispose in class org.mule.transport.AbstractConnectable
doConnect
protected void doConnect()
throws Exception
- Specified by:
doConnect in class org.mule.transport.AbstractConnectable
- Throws:
Exception
doDisconnect
protected void doDisconnect()
throws Exception
- Specified by:
doDisconnect in class org.mule.transport.AbstractConnectable
- Throws:
Exception
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.