public class PromptStdioConnector extends StdioConnector
PromptStdioConnector connects to the System streams in and out by
default and add some basic fuctionality for writing out prompt messages.inputStream, outputStream, STDIO, STREAM_SYSTEM_ERR, STREAM_SYSTEM_IN, STREAM_SYSTEM_OUTconnected, connectedSemaphore, connecting, connectionStrategy, createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatchers, disposed, disposing, exceptionListener, initialised, logger, muleContext, name, numberOfConcurrentTransactedReceivers, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, started, startOnConnectINT_VALUE_NOT_SETPHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
PromptStdioConnector() |
| Modifier and Type | Method and Description |
|---|---|
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() |
void |
doStart()
Template method to perform any work when starting the connectoe
|
Connector |
getConnector() |
InputStream |
getInputStream() |
long |
getMessageDelayTime() |
String |
getOutputMessage() |
String |
getOutputMessageCode() |
OutputStream |
getOutputStream() |
OutputStream |
getOutputStream(ImmutableEndpoint endpoint,
MuleMessage message) |
String |
getPromptMessage() |
String |
getPromptMessageCode() |
String |
getResourceBundle() |
MessageReceiver |
registerListener(Service service,
InboundEndpoint endpoint)
This creates a
MessageReceiver associated with this endpoint
and registers it with the connector |
void |
setMessageDelayTime(long messageDelayTime) |
void |
setOutputMessage(String outputMessage) |
void |
setOutputMessageCode(String outputMessageCode) |
void |
setPromptMessage(String promptMessage) |
void |
setPromptMessageCode(String promptMessageCode) |
void |
setResourceBundle(String resourceBundle) |
createReceiver, doStop, getProtocol, setInputStream, setOutputStreamcheckDisposed, connect, destroyReceiver, disconnect, dispatch, dispose, disposeDispatchers, disposeReceivers, disposeRequesters, disposeWorkManagers, exceptionThrown, fireNotification, getConnectedSemaphore, getConnectEventId, getConnectionDescription, getConnectionStrategy, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getExceptionListener, getMaxDispatchersActive, getMaxRequestersActive, getMessageAdapter, getMuleContext, getName, getNumberOfConcurrentTransactedReceivers, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, handleException, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isCreateMultipleTransactedReceivers, isDisposed, isDisposing, isEnableMessageEvents, isRemoteSyncEnabled, isStarted, isSyncEnabled, lookupReceiver, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, send, setConnectionStrategy, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherThreadingProfile, setDynamicNotification, setExceptionListener, setMaxDispatchersActive, setMaxRequestersActive, setMuleContext, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterThreadingProfile, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, start, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, workAccepted, workCompleted, workRejected, workStartedprotected void doInitialise()
throws InitialisationException
doInitialise in class AbstractConnectorInitialisationExceptionprotected void doDispose()
AbstractConnectordoDispose in class StdioConnectorprotected void doConnect()
throws Exception
AbstractConnectordoConnect in class AbstractConnectorExceptionprotected void doDisconnect()
throws Exception
AbstractConnectordoDisconnect in class AbstractConnectorExceptionpublic InputStream getInputStream()
getInputStream in class StdioConnectorpublic void doStart()
AbstractConnectordoStart in class StdioConnectorpublic OutputStream getOutputStream()
getOutputStream in class StdioConnectorpublic String getPromptMessage()
public void setPromptMessage(String promptMessage)
promptMessage - The promptMessage to set.public String getPromptMessageCode()
public void setPromptMessageCode(String promptMessageCode)
promptMessageCode - The promptMessageCode to set.public String getResourceBundle()
public void setResourceBundle(String resourceBundle)
resourceBundle - The resourceBundle to read the message from. This property is
only needed in conjunction with promptMessageCode or outputMessageCode.public String getOutputMessage()
public void setOutputMessage(String outputMessage)
outputMessage - The outputMessage to set.public String getOutputMessageCode()
public void setOutputMessageCode(String outputMessageCode)
outputMessageCode - The outputMessageCode to set.public Connector getConnector()
public MessageReceiver registerListener(Service service, InboundEndpoint endpoint) throws Exception
ConnectorMessageReceiver associated with this endpoint
and registers it with the connectorregisterListener in interface ConnectorregisterListener in class AbstractConnectorservice - the listening serviceendpoint - the endpoint contains the listener endpointUri on which to
listen on.Exception - if the MessageReceiver cannot be created or the Receiver
cannot be registeredpublic long getMessageDelayTime()
public void setMessageDelayTime(long messageDelayTime)
public OutputStream getOutputStream(ImmutableEndpoint endpoint, MuleMessage message) throws MuleException
MuleExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.