com.atlassian.bamboo.setup
Class BrokerURIUtils

java.lang.Object
  extended by com.atlassian.bamboo.setup.BrokerURIUtils

public class BrokerURIUtils
extends java.lang.Object


Constructor Summary
BrokerURIUtils()
           
 
Method Summary
static java.net.URI addGlobalFailoverParameters(java.net.URI brokerURI, java.lang.String failoverParams, com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
          Method to add parameters to the broker client URI.
static java.net.URI addParametersToEachFailoverTransport(java.net.URI brokerURI, java.lang.String failoverTransportsParams, com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
          Method to add parameters to the broker client URI.
static java.net.URI changeUriIpAddress(java.net.URI uri, java.lang.String newIpAddress)
           
static java.net.URI decorateBrokerURI(java.net.URI brokerURI)
          Decorates a supplied ActiveMQ broker URI with default options.
static java.util.Map<java.lang.String,java.lang.String> parseQuery(java.lang.String query)
           
static java.net.URI removeParameter(java.net.URI brokerURI, java.lang.String paramToRemove)
          Method to remove a parameter from the broker URI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BrokerURIUtils

public BrokerURIUtils()
Method Detail

removeParameter

@NotNull
public static java.net.URI removeParameter(@NotNull
                                                   java.net.URI brokerURI,
                                                   @NotNull
                                                   java.lang.String paramToRemove)
Method to remove a parameter from the broker URI. Handles removal of params failover: composite params as well

Parameters:
brokerURI -
paramToRemove -
Returns:

changeUriIpAddress

public static java.net.URI changeUriIpAddress(@NotNull
                                              java.net.URI uri,
                                              @NotNull
                                              java.lang.String newIpAddress)
                                       throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

addGlobalFailoverParameters

@NotNull
public static java.net.URI addGlobalFailoverParameters(@NotNull
                                                               java.net.URI brokerURI,
                                                               @NotNull
                                                               java.lang.String failoverParams,
                                                               @NotNull
                                                               com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
Method to add parameters to the broker client URI.

Parameters:
brokerURI -
failoverParams -
Returns:

addParametersToEachFailoverTransport

@NotNull
public static java.net.URI addParametersToEachFailoverTransport(@NotNull
                                                                        java.net.URI brokerURI,
                                                                        @NotNull
                                                                        java.lang.String failoverTransportsParams,
                                                                        @NotNull
                                                                        com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
Method to add parameters to the broker client URI.

Parameters:
brokerURI -
failoverTransportsParams -
Returns:

parseQuery

public static java.util.Map<java.lang.String,java.lang.String> parseQuery(@Nullable
                                                                          java.lang.String query)
                                                                   throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

decorateBrokerURI

public static java.net.URI decorateBrokerURI(java.net.URI brokerURI)

Decorates a supplied ActiveMQ broker URI with default options.

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


Copyright © 2011 Atlassian. All Rights Reserved.