public class BrokerURIUtils extends Object
Modifier and Type | Method and Description |
---|---|
static URI |
addGlobalFailoverParameters(URI brokerURI,
String failoverParams,
com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
Method to add parameters to the broker client URI.
|
static URI |
addParametersToEachFailoverTransport(URI brokerURI,
String failoverTransportsParams,
com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
Method to add parameters to the broker client URI.
|
static URI |
changeUriIpAddress(URI uri,
String newIpAddress) |
static URI |
decorateBrokerURI(URI brokerURI)
Decorates a supplied ActiveMQ broker URI with default options.
|
static String |
generateBrokerClientURI(String brokerConnectionAddress) |
static URI |
generateBrokerClientURIForCloud(String baseUrl)
Build JMS broker client URI to point remote agents to JMS-over-HTTP endpoint
|
static Map<String,String> |
parseQuery(String query) |
static URI |
removeParameter(URI brokerURI,
String paramToRemove)
Method to remove a parameter from the broker URI.
|
@NotNull public static URI removeParameter(@NotNull URI brokerURI, @NotNull String paramToRemove)
brokerURI
- paramToRemove
- public static URI changeUriIpAddress(@NotNull URI uri, @NotNull String newIpAddress) throws URISyntaxException
URISyntaxException
@NotNull public static URI addGlobalFailoverParameters(@NotNull URI brokerURI, @NotNull String failoverParams, @NotNull com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
brokerURI
- failoverParams
- @NotNull public static URI addParametersToEachFailoverTransport(@NotNull URI brokerURI, @NotNull String failoverTransportsParams, @NotNull com.atlassian.bamboo.setup.BrokerURIUtils.MergeMode mergeMode)
brokerURI
- failoverTransportsParams
- public static Map<String,String> parseQuery(@Nullable String query) throws URISyntaxException
URISyntaxException
public static URI decorateBrokerURI(URI brokerURI)
Decorates a supplied ActiveMQ broker URI with default options.
brokerURI
- The broker URI to decorate@NotNull public static URI generateBrokerClientURIForCloud(String baseUrl)
baseUrl
- Cloud instance base URL@NotNull public static String generateBrokerClientURI(String brokerConnectionAddress) throws URISyntaxException
URISyntaxException
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.