Class BrokerURIUtils


  • public class BrokerURIUtils
    extends Object
    • Method Detail

      • removeParameter

        @NotNull
        public static @NotNull URI removeParameter​(@NotNull
                                                   @NotNull URI brokerURI,
                                                   @NotNull
                                                   @NotNull String paramToRemove)
        Method to remove a parameter from the broker URI. Handles removal of params failover: composite params as well
        Parameters:
        brokerURI -
        paramToRemove -
        Returns:
      • addGlobalFailoverParameters

        @NotNull
        public static @NotNull URI addGlobalFailoverParameters​(@NotNull
                                                               @NotNull URI brokerURI,
                                                               @NotNull
                                                               @NotNull String failoverParams,
                                                               @NotNull
                                                               @NotNull BrokerURIUtils.MergeMode mergeMode)
        Method to add parameters to the broker client URI.
        Parameters:
        brokerURI -
        failoverParams -
        Returns:
      • addParametersToEachFailoverTransport

        @NotNull
        public static @NotNull URI addParametersToEachFailoverTransport​(@NotNull
                                                                        @NotNull URI brokerURI,
                                                                        @NotNull
                                                                        @NotNull String failoverTransportsParams,
                                                                        @NotNull
                                                                        @NotNull BrokerURIUtils.MergeMode mergeMode)
        Method to add parameters to the broker client URI.
        Parameters:
        brokerURI -
        failoverTransportsParams -
        Returns:
      • addParametersToFailoverTransport

        public static URI addParametersToFailoverTransport​(@NotNull
                                                           @NotNull URI brokerURI,
                                                           @NotNull
                                                           @NotNull String protocol,
                                                           @NotNull
                                                           @NotNull String failoverTransportsParams,
                                                           @NotNull
                                                           @NotNull BrokerURIUtils.MergeMode mergeMode)
      • decorateBrokerURI

        public static URI decorateBrokerURI​(URI brokerURI)

        Decorates a supplied ActiveMQ broker URI with default options.

        Parameters:
        brokerURI - The broker URI to decorate
        Returns:
        The decorated broker URI
      • decorateBrokerClientURI

        public static URI decorateBrokerClientURI​(URI brokerURI)
      • decorateBrokerURI

        public static URI decorateBrokerURI​(URI brokerURI,
                                            List<String> paramsToPropagate)