com.mulesoft.adapter.helper
Class Channels
java.lang.Object
com.mulesoft.adapter.helper.Channels
public final class Channels
- extends Object
Helper methods for Channel.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isDefined
public static boolean isDefined(String element)
- Parameters:
element -
- Returns:
- true if specified `element` is defined
retrieveConfigurationElement
public static String retrieveConfigurationElement(String name,
com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Parameters:
name - channel -
- Returns:
- configuration as a String, "" if undefined
- Throws:
javax.resource.ResourceException
retrieveUsername
public static String retrieveUsername(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Parameters:
channel -
- Returns:
- username as a String, "" if undefined
- Throws:
javax.resource.ResourceException
retrievePassword
public static String retrievePassword(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Parameters:
channel -
- Returns:
- password as a String, "" if undefined
- Throws:
javax.resource.ResourceException
retrieveSecurityToken
public static String retrieveSecurityToken(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Parameters:
channel -
- Returns:
- securityToken as a String, "" if undefined
- Throws:
javax.resource.ResourceException
retrieveQualityOfService
public static com.sap.engine.interfaces.messaging.api.DeliverySemantics retrieveQualityOfService(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Parameters:
channel -
- Returns:
- the QoS
- Throws:
javax.resource.ResourceException - when invalid QoS was selected
retrieveQueueName
public static String retrieveQueueName(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
retrieveQueryResponseRootElementName
public static String retrieveQueryResponseRootElementName(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
retrieveSubscriptionResponseRootElementName
public static String retrieveSubscriptionResponseRootElementName(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
retrieveResponseRootElementNamespace
public static String retrieveResponseRootElementNamespace(com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
retrieveConfigurationElementAsInt
public static int retrieveConfigurationElementAsInt(String name,
com.sap.aii.af.service.cpa.Channel channel)
throws javax.resource.ResourceException
- Parameters:
name - channel -
- Returns:
- configuration as a int, 0 if undefined
- Throws:
javax.resource.ResourceException
Copyright © 2012. All Rights Reserved.