|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.AbstractConnector
org.mule.providers.stream.StreamConnector
org.mule.providers.stream.SystemStreamConnector
SystemStreamConnector connects to the System streams in and out by
default and add some basic fuctionality for writing out prompt messages.
| Field Summary |
| Fields inherited from class org.mule.providers.stream.StreamConnector |
inputStream, outputStream, STREAM_SYSTEM_ERR, STREAM_SYSTEM_IN, STREAM_SYSTEM_OUT |
| Fields inherited from interface org.mule.umo.provider.UMOConnector |
INT_VALUE_NOT_SET |
| Constructor Summary | |
SystemStreamConnector()
|
|
| Method Summary | |
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 |
UMOConnector |
getConnector()
|
InputStream |
getInputStream()
|
long |
getMessageDelayTime()
|
String |
getOutputMessage()
|
String |
getOutputMessageCode()
|
OutputStream |
getOutputStream()
|
OutputStream |
getOutputStream(UMOImmutableEndpoint endpoint,
UMOMessage message)
Will get the output stream for this type of transport. |
String |
getPromptMessage()
|
String |
getPromptMessageCode()
|
String |
getResourceBundle()
|
UMOMessageReceiver |
registerListener(UMOComponent component,
UMOEndpoint endpoint)
This creates a UMOMessageReceiver 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)
|
| Methods inherited from class org.mule.providers.stream.StreamConnector |
createReceiver, doStop, getProtocol, setInputStream, setOutputStream |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SystemStreamConnector()
| Method Detail |
protected void doInitialise()
throws InitialisationException
doInitialise in class AbstractConnectorInitialisationExceptionprotected void doDispose()
AbstractConnector
doDispose in class StreamConnector
protected void doConnect()
throws Exception
AbstractConnector
doConnect in class AbstractConnectorException
protected void doDisconnect()
throws Exception
AbstractConnector
doDisconnect in class AbstractConnectorExceptionpublic InputStream getInputStream()
getInputStream in class StreamConnectorpublic void doStart()
AbstractConnector
doStart in class StreamConnectorpublic OutputStream getOutputStream()
getOutputStream in class StreamConnectorpublic 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 UMOConnector getConnector()
public UMOMessageReceiver registerListener(UMOComponent component,
UMOEndpoint endpoint)
throws Exception
AbstractConnectorUMOMessageReceiver associated with this endpoint
and registers it with the connector.
registerListener in interface UMOConnectorregisterListener in class AbstractConnectorExceptionpublic long getMessageDelayTime()
public void setMessageDelayTime(long messageDelayTime)
public OutputStream getOutputStream(UMOImmutableEndpoint endpoint,
UMOMessage message)
throws UMOException
AbstractConnectorUnsupportedOperationException
is thrown. Note that the stream MUST release resources on close. For help doing so, see
CallbackOutputStream.
getOutputStream in interface UMOConnectorgetOutputStream in class AbstractConnectorendpoint - the endpoint that releates to this Dispatchermessage - the current message being processed
UMOException - in case of any error
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||