EntityNameHelper Class

  • java.lang.Object
    • com.microsoft.azure.servicebus.management.EntityNameHelper

public class EntityNameHelper

This class can be used to format the path for different Service Bus entity types.

Constructor Summary

Constructor Description
EntityNameHelper()

Method Summary

Modifier and Type Method and Description
static String formatDeadLetterPath(String entityPath)

Formats the dead letter path for either a queue, or a subscription.

static String formatRulePath(String topicPath, String subscriptionName, String ruleName)

Formats the rule path, based on the topic path, subscription name and the rule name.

static String formatSubscriptionPath(String topicPath, String subscriptionName)

Formats the subscription path, based on the topic path and subscription name.

static String formatTransferDeadLetterPath(String entityPath)

Formats the transfer dead letter path.

Methods inherited from java.lang.Object

Constructor Details

EntityNameHelper

public EntityNameHelper()

Method Details

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.

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

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.

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

Applies to