Merge "Issue #2694 Improve error handling" into development

Former-commit-id: 9357bdfb0e [formerly e327184bdc [formerly a8707e3914a48b27d428340240eaa3eff48832f7]]
Former-commit-id: e327184bdc
Former-commit-id: 288aa9b52c
This commit is contained in:
Nate Jensen 2014-04-10 10:23:22 -05:00 committed by Gerrit Code Review
commit 0ff3ad4f05

View file

@ -47,6 +47,8 @@ import com.raytheon.uf.common.json.geo.BasicJsonService;
*/
public class QpidBrokerConnectionsImpl implements IBrokerConnectionsProvider {
private static final String JMS_CONNECTIONS_URL = "JMS_CONNECTIONS_URL";
@Override
public List<String> getConnections() throws Exception {
// Use rest services to pull connection clientId
@ -54,7 +56,11 @@ public class QpidBrokerConnectionsImpl implements IBrokerConnectionsProvider {
// port needs to be passed as a parameter
// parse json response for clientId, recommend using a hash of some kind
String url = System.getenv("JMS_CONNECTIONS_URL");
String url = System.getenv(JMS_CONNECTIONS_URL);
if (url == null) {
throw new Exception(JMS_CONNECTIONS_URL
+ " is not set in setup.env");
}
HttpGet request = new HttpGet(url);
HttpClientResponse response = HttpClient.getInstance().executeRequest(