Class EntityNameHelper


  • public class EntityNameHelper
    extends Object
    This class can be used to format the path for different Service Bus entity types.
    • Constructor Detail

      • EntityNameHelper

        public EntityNameHelper()
    • Method Detail

      • formatDeadLetterPath

        public static String formatDeadLetterPath​(String entityPath)
        Formats the dead letter path for either a queue, or a subscription.
        Parameters:
        entityPath - - The name of the queue, or path of the subscription.
        Returns:
        - The path as a String of the dead letter entity.
      • formatSubscriptionPath

        public static String formatSubscriptionPath​(String topicPath,
                                                    String subscriptionName)
        Formats the subscription path, based on the topic path and subscription name.
        Parameters:
        topicPath - - The name of the topic, including slashes.
        subscriptionName - - The name of the subscription.
        Returns:
        The path of the subscription.
      • formatRulePath

        public static String formatRulePath​(String topicPath,
                                            String subscriptionName,
                                            String ruleName)
        Formats the rule path, based on the topic path, subscription name and the rule name.
        Parameters:
        topicPath - - The name of the topic, including slashes.
        subscriptionName - - The name of the subscription.
        ruleName - - The name of the rule.
        Returns:
        The path of the rule
      • formatTransferDeadLetterPath

        public static String formatTransferDeadLetterPath​(String entityPath)
        Formats the transfer dead letter path.
        Parameters:
        entityPath - - Path of the entity whose transfer dead letter needs to be formatted.
        Returns:
        The path of the transfer dead letter sub-queue for the entity