com.ibm.commerce.messaging.util
Class ConnectorsInfo

java.lang.Object
  |
  +--com.ibm.commerce.messaging.util.ConnectorsInfo

public class ConnectorsInfo
extends java.lang.Object

This class is a holder for static information about all Connectors of the Messaging System. It reads from the configuration XML, creates the necessary Class and Method objects, and stores this information for future calls. It is called only once upon initialization. Contents 1) connectors: holds all of the outbound connectors 2) inboundConnectors: holds all of the inbound connectors 3) outbound :boolean flag used to identify whether we are processing a request (inbound) or sending a request (outbound).


Field Summary
protected static java.util.Hashtable connectors
           
static java.lang.String EDITABLEPROPERTY
           
static java.lang.String ENDPROPERTIES
           
protected static java.util.Hashtable inboundConnectors
           
protected static boolean outbound
           
static java.lang.String PROPERTIES
           
static java.lang.String UNEDITABLEPROPERTY
           
 
Constructor Summary
ConnectorsInfo()
           
 
Method Summary
protected static java.lang.reflect.Method findMethod(java.lang.reflect.Method[] methods, java.lang.String methodName)
          Determine whether the method indicated by 'methodName' exists in the array methods, and return that object.
static java.lang.Object findParm(java.lang.reflect.Method method, java.lang.String value)
          Find and return the single parameter value for the method.
static java.util.Hashtable getInboundConnectors()
          Returns all the Inbound connectors.
static java.util.Hashtable getOutboundConnectors()
          Returns all the defined Outbound connectors.
static java.util.Vector getOutboundCSProperties(java.lang.Integer transport)
          Returns the Connector's ConnectionSpec properties.
static java.util.Vector getOutboundISProperties(java.lang.Integer transport)
          Returns the Outbound Connector's InteractionSpec properties.
static java.lang.Integer getRetries(java.lang.Integer transport)
          Returns the Connector's ConnectionSpec properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectors

protected static java.util.Hashtable connectors

EDITABLEPROPERTY

public static final java.lang.String EDITABLEPROPERTY

ENDPROPERTIES

public static final java.lang.String ENDPROPERTIES

inboundConnectors

protected static java.util.Hashtable inboundConnectors

outbound

protected static boolean outbound

PROPERTIES

public static final java.lang.String PROPERTIES

UNEDITABLEPROPERTY

public static final java.lang.String UNEDITABLEPROPERTY
Constructor Detail

ConnectorsInfo

public ConnectorsInfo()
Method Detail

findMethod

protected static java.lang.reflect.Method findMethod(java.lang.reflect.Method[] methods,
                                                     java.lang.String methodName)
                                              throws ECSystemException
Determine whether the method indicated by 'methodName' exists in the array methods, and return that object.
Parameters:
java.lang.reflect.Method[] - An array of Method objects.
java.lang.String - The method name we are searching for.
Returns:
java.lang.reflect.Method The Method, or null if it does not exist.
Throws:
ECSystemException -  

findParm

public static java.lang.Object findParm(java.lang.reflect.Method method,
                                        java.lang.String value)
                                 throws ECSystemException
Find and return the single parameter value for the method.
Parameters:
java.lang.reflect.Method - The method we are using as reference.
java.lang.String - The parameter value.
Returns:
java.lang.Object The object of the type of the parameter, with the value of the parameter value or null if there are no parameters to the method.
Throws:
ECSystemException - If the parameter is null or the parameter type does not have a constructor with a string parameter.

getInboundConnectors

public static java.util.Hashtable getInboundConnectors()
                                                throws ECSystemException
Returns all the Inbound connectors.
Returns:
java.util.Hashtable The inbound connectors.
Throws:
ECSystemException -  

getOutboundConnectors

public static java.util.Hashtable getOutboundConnectors()
                                                 throws ECSystemException
Returns all the defined Outbound connectors.
Returns:
java.util.Hashtable The outbound connectors.
Throws:
ECSystemException -  

getOutboundCSProperties

public static java.util.Vector getOutboundCSProperties(java.lang.Integer transport)
                                                throws ECSystemException
Returns the Connector's ConnectionSpec properties.
Parameters:
transport - java.lang.Integer The transport Id.
Returns:
java.util.Vector The Connection Spec properties for the transport.
Throws:
ECSystemException -  

getOutboundISProperties

public static java.util.Vector getOutboundISProperties(java.lang.Integer transport)
                                                throws ECSystemException
Returns the Outbound Connector's InteractionSpec properties.
Parameters:
transport - java.lang.Integer The transport Id.
Returns:
java.util.Vector The Interaction Spec properties for the Transport.
Throws:
ECSystemException -  

getRetries

public static java.lang.Integer getRetries(java.lang.Integer transport)
                                    throws ECSystemException
Returns the Connector's ConnectionSpec properties.
Parameters:
transport - java.lang.Integer The transport Id.
Returns:
java.util.Vector The Connection Spec properties for the transport.
Throws:
ECSystemException -