org.mule.transport.stdio

Class PromptStdioConnector

  • All Implemented Interfaces:
    EventListener, javax.resource.spi.work.WorkListener, org.mule.api.AnnotatedObject, org.mule.api.lifecycle.Disposable, org.mule.api.lifecycle.Initialisable, org.mule.api.lifecycle.Lifecycle, org.mule.api.lifecycle.LifecycleStateEnabled, org.mule.api.lifecycle.Startable, org.mule.api.lifecycle.Stoppable, org.mule.api.NameableObject, org.mule.api.NamedObject, org.mule.api.transport.Connectable, org.mule.api.transport.Connector


    public class PromptStdioConnectorextends StdioConnector
    PromptStdioConnector 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.transport.AbstractConnector

        connecting, createMultipleTransactedReceivers, DEFAULT_CONTEXT_START_TIMEOUT, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, MULE_CONTEXT_START_TIMEOUT_SYSTEM_PROPERTY, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect
      • Fields inherited from interface org.mule.api.transport.Connector

        INT_VALUE_NOT_SET
      • Fields inherited from interface org.mule.api.lifecycle.Disposable

        PHASE_NAME
      • Fields inherited from interface org.mule.api.AnnotatedObject

        PROPERTY_NAME
    • Constructor Summary

      Constructors 
      Constructor and Description
      PromptStdioConnector(org.mule.api.MuleContext context) 
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      protected voiddoConnect() 
      protected voiddoDisconnect() 
      protected voiddoDispose() 
      protected voiddoInitialise() 
      voiddoStart() 
      org.mule.api.transport.ConnectorgetConnector() 
      InputStreamgetInputStream() 
      longgetMessageDelayTime() 
      StringgetOutputMessage() 
      StringgetOutputMessageCode() 
      OutputStreamgetOutputStream() 
      OutputStreamgetOutputStream(org.mule.api.endpoint.ImmutableEndpoint endpoint, org.mule.api.MuleMessage message) 
      StringgetPromptMessage() 
      StringgetPromptMessageCode() 
      StringgetResourceBundle() 
      voidsetMessageDelayTime(long messageDelayTime) 
      voidsetOutputMessage(String outputMessage) 
      voidsetOutputMessageCode(String outputMessageCode) 
      voidsetPromptMessage(String promptMessage) 
      voidsetPromptMessageCode(String promptMessageCode) 
      voidsetResourceBundle(String resourceBundle) 
      • Methods inherited from class org.mule.transport.AbstractConnector

        borrowDispatcher, clearDispatchers, clearRequesters, configureDispatcherPool, connect, connectConnectorAndReceivers, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, fireNotification, getCanonicalURI, getConnectEventId, getConnectionDescription, getDefaultExchangePattern, getDefaultInboundTransformers, getDefaultOutboundTransformers, getDefaultResponseTransformers, getDispatcherFactory, getDispatcherPoolFactory, getDispatcherThreadingProfile, getDispatcherWorkManager, getInboundExchangePatterns, getLifecycleState, getMaxDispatchersActive, getMaxRequestersActive, getMaxTotalDispatchers, getMuleContext, getMuleMessageFactory, getName, getNumberOfConcurrentTransactedReceivers, getOperationResourceFactory, getOutboundExchangePatterns, getOutputStream, getReceiver, getReceiverKey, getReceivers, getReceivers, getReceiverThreadingProfile, getReceiverWorkManager, getReplyToHandler, getRequesterFactory, getRequesterThreadingProfile, getRequesterWorkManager, getRetryPolicyTemplate, getScheduler, getServiceDescriptor, getServiceOverrides, getSessionHandler, getSupportedProtocols, getTransactionalResource, handleWorkException, initFromServiceDescriptor, initialise, initialiseFromUrl, initWorkManagers, isConnected, isConnecting, isCreateMultipleTransactedReceivers, isDisposed, isEnableMessageEvents, isEnableMessageEvents, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, returnDispatcher, setConnected, setConnecting, setCreateMultipleTransactedReceivers, setDispatcherFactory, setDispatcherPoolFactory, setDispatcherPoolMaxWait, setDispatcherPoolWhenExhaustedAction, setDispatcherThreadingProfile, setDynamicNotification, setInitialStateStopped, setMaxDispatchersActive, setMaxRequestersActive, setName, setNumberOfConcurrentTransactedReceivers, setReceiverThreadingProfile, setRequesterFactory, setRequesterPoolMaxWait, setRequesterPoolWhenExhaustedAction, setRequesterThreadingProfile, setRetryPolicyTemplate, setServiceOverrides, setSessionHandler, setSupportedProtocols, setupDispatchReturn, setupRequestReturn, setValidateConnections, shutdownScheduler, start, startAfterConnect, stop, supportsProtocol, toString, unregisterListener, unregisterSupportedProtocol, updateCachedNotificationHandler, validateConnection, workAccepted, workCompleted, workRejected, workStarted
      • Methods inherited from class org.mule.AbstractAnnotatedObject

        getAnnotation, getAnnotations, setAnnotations
    • Constructor Detail

      • PromptStdioConnector

        public PromptStdioConnector(org.mule.api.MuleContext context)
    • Method Detail

      • doInitialise

        protected void doInitialise()                     throws org.mule.api.lifecycle.InitialisationException
        Specified by:
        doInitialise in class org.mule.transport.AbstractConnector
        Throws:
        org.mule.api.lifecycle.InitialisationException
      • doConnect

        protected void doConnect()                  throws Exception
        Specified by:
        doConnect in class org.mule.transport.AbstractConnector
        Throws:
        Exception
      • doDisconnect

        protected void doDisconnect()                     throws Exception
        Specified by:
        doDisconnect in class org.mule.transport.AbstractConnector
        Throws:
        Exception
      • getPromptMessage

        public String getPromptMessage()
        Returns:
        Returns the promptMessage.
      • setPromptMessage

        public void setPromptMessage(String promptMessage)
        Parameters:
        promptMessage - The promptMessage to set.
      • getPromptMessageCode

        public String getPromptMessageCode()
        Returns:
        Returns the promptMessageCode.
      • setPromptMessageCode

        public void setPromptMessageCode(String promptMessageCode)
        Parameters:
        promptMessageCode - The promptMessageCode to set.
      • getResourceBundle

        public String getResourceBundle()
        Returns:
        Returns the resourceBundle.
      • setResourceBundle

        public void setResourceBundle(String resourceBundle)
        Parameters:
        resourceBundle - The resourceBundle to read the message from. This property is only needed in conjunction with promptMessageCode or outputMessageCode.
      • getOutputMessage

        public String getOutputMessage()
        Returns:
        Returns the outputMessage.
      • setOutputMessage

        public void setOutputMessage(String outputMessage)
        Parameters:
        outputMessage - The outputMessage to set.
      • getOutputMessageCode

        public String getOutputMessageCode()
        Returns:
        Returns the outputMessageCode.
      • setOutputMessageCode

        public void setOutputMessageCode(String outputMessageCode)
        Parameters:
        outputMessageCode - The outputMessageCode to set.
      • getConnector

        public org.mule.api.transport.Connector getConnector()
      • getMessageDelayTime

        public long getMessageDelayTime()
      • setMessageDelayTime

        public void setMessageDelayTime(long messageDelayTime)
      • getOutputStream

        public OutputStream getOutputStream(org.mule.api.endpoint.ImmutableEndpoint endpoint,                           org.mule.api.MuleMessage message)                             throws org.mule.api.MuleException
        Throws:
        org.mule.api.MuleException

Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14