org.mule.transport.legstar.mock
Class LegstarMockConnector

java.lang.Object
  extended by org.mule.transport.AbstractConnector
      extended by org.mule.transport.legstar.mock.LegstarMockConnector
All Implemented Interfaces:
EventListener, WorkListener, 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, LegstarConnector

public class LegstarMockConnector
extends org.mule.transport.AbstractConnector
implements LegstarConnector

This connector simulates mainframe access for adapters.


Field Summary
static String LEGSTARMOCK
          This constant defines the main transport protocol identifier.
 
Fields inherited from class org.mule.transport.AbstractConnector
createMultipleTransactedReceivers, DEFAULT_NUM_CONCURRENT_TX_RECEIVERS, dispatcherFactory, dispatcherPoolFactory, dispatchers, initialStateStopped, lifecycleManager, logger, muleContext, muleMessageFactory, name, numberOfConcurrentTransactedReceivers, PROPERTY_POLLING_FREQUENCY, receivers, requesterFactory, requesters, serviceDescriptor, serviceOverrides, sessionHandler, startOnConnect
 
Fields inherited from interface org.mule.transport.legstar.LegstarConnector
HOST_CHARSET_PROPERTY, HOST_PASSWORD_PROPERTY, HOST_USERID_PROPERTY
 
Fields inherited from interface org.mule.api.transport.Connector
INT_VALUE_NOT_SET
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
LegstarMockConnector(org.mule.api.MuleContext context)
           
 
Method Summary
 void doConnect()
          
 void doDisconnect()
          
 void doDispose()
          
 void doInitialise()
          
 void doStart()
          
 void doStop()
          
 HostCredentials getHostCredentials(org.mule.api.MuleMessage message)
          Credentials can be set at the connector level or passed as properties in incoming messages.
 String getHostPassword()
           
 String getHostUserID()
           
 String getProtocol()
          
 void setHostPassword(String password)
           
 void setHostUserID(String userID)
           
 
Methods inherited from class org.mule.transport.AbstractConnector
clearDispatchers, clearRequesters, configureDispatcherPool, connect, createDefaultRedeliveryPolicy, createDispatcherMessageProcessor, createMuleMessageFactory, createOperationResource, createReceiver, createScheduler, destroyReceiver, disconnect, dispose, disposeReceivers, disposeWorkManagers, doUnregisterListener, fireNotification, 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, isInitialised, isInitialStateStopped, isResponseEnabled, isStarted, isStarting, isStopped, isStopping, isValidateConnections, lookupReceiver, registerListener, registerSupportedMetaProtocol, registerSupportedProtocol, registerSupportedProtocolWithoutPrefix, request, request, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LEGSTARMOCK

public static final String LEGSTARMOCK
This constant defines the main transport protocol identifier.

See Also:
Constant Field Values
Constructor Detail

LegstarMockConnector

public LegstarMockConnector(org.mule.api.MuleContext context)
Parameters:
context - the Mule context.
Method Detail

doInitialise

public void doInitialise()
                  throws org.mule.api.lifecycle.InitialisationException

Specified by:
doInitialise in class org.mule.transport.AbstractConnector
Throws:
org.mule.api.lifecycle.InitialisationException

doConnect

public void doConnect()
               throws Exception

Specified by:
doConnect in class org.mule.transport.AbstractConnector
Throws:
Exception

doDisconnect

public void doDisconnect()
                  throws Exception

Specified by:
doDisconnect in class org.mule.transport.AbstractConnector
Throws:
Exception

doStart

public void doStart()
             throws org.mule.api.MuleException

Specified by:
doStart in class org.mule.transport.AbstractConnector
Throws:
org.mule.api.MuleException

doStop

public void doStop()
            throws org.mule.api.MuleException

Specified by:
doStop in class org.mule.transport.AbstractConnector
Throws:
org.mule.api.MuleException

doDispose

public void doDispose()

Specified by:
doDispose in class org.mule.transport.AbstractConnector

getProtocol

public String getProtocol()

Specified by:
getProtocol in interface org.mule.api.transport.Connector

getHostCredentials

public HostCredentials getHostCredentials(org.mule.api.MuleMessage message)
Credentials can be set at the connector level or passed as properties in incoming messages.

The dynamic credentials passed in message properties take precedence over any connector property.

Specified by:
getHostCredentials in interface LegstarConnector
Parameters:
message - the incoming mule message
Returns:
a set of host credentials

getHostUserID

public String getHostUserID()
Specified by:
getHostUserID in interface LegstarConnector
Returns:
the host user ID

getHostPassword

public String getHostPassword()
Specified by:
getHostPassword in interface LegstarConnector
Returns:
the host Password

setHostUserID

public void setHostUserID(String userID)
Specified by:
setHostUserID in interface LegstarConnector
Parameters:
userID - the host user ID to set

setHostPassword

public void setHostPassword(String password)
Specified by:
setHostPassword in interface LegstarConnector
Parameters:
password - the host Password to set


Copyright © 2013 LegSem. All Rights Reserved.