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_OUT
connected, 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, startOnConnect
INT_VALUE_NOT_SET
PHASE_NAME
PHASE_NAME
PHASE_NAME
PHASE_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, setOutputStream
checkDisposed, 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, workStarted
protected void doInitialise() throws InitialisationException
doInitialise
in class AbstractConnector
InitialisationException
protected void doDispose()
AbstractConnector
doDispose
in class StdioConnector
protected void doConnect() throws Exception
AbstractConnector
doConnect
in class AbstractConnector
Exception
protected void doDisconnect() throws Exception
AbstractConnector
doDisconnect
in class AbstractConnector
Exception
public InputStream getInputStream()
getInputStream
in class StdioConnector
public void doStart()
AbstractConnector
doStart
in class StdioConnector
public OutputStream getOutputStream()
getOutputStream
in class StdioConnector
public 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
Connector
MessageReceiver
associated with this endpoint
and registers it with the connectorregisterListener
in interface Connector
registerListener
in class AbstractConnector
service
- 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
MuleException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.