brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorb...@apache.org
Subject [1/3] incubator-brooklyn git commit: Adds URL constructor to BrooklynApi
Date Tue, 23 Dec 2014 12:47:10 GMT
Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master ccd78d063 -> c88796ad1


Adds URL constructor to BrooklynApi


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/a477308a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/a477308a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/a477308a

Branch: refs/heads/master
Commit: a477308a56bb6a1e53aa3c72585c3017926fa21b
Parents: 72cb972
Author: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Authored: Thu Dec 18 10:38:11 2014 +0000
Committer: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Committed: Tue Dec 23 12:01:50 2014 +0000

----------------------------------------------------------------------
 .../src/main/java/brooklyn/rest/client/BrooklynApi.java         | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/a477308a/usage/rest-client/src/main/java/brooklyn/rest/client/BrooklynApi.java
----------------------------------------------------------------------
diff --git a/usage/rest-client/src/main/java/brooklyn/rest/client/BrooklynApi.java b/usage/rest-client/src/main/java/brooklyn/rest/client/BrooklynApi.java
index 6d58928..1bdd92f 100644
--- a/usage/rest-client/src/main/java/brooklyn/rest/client/BrooklynApi.java
+++ b/usage/rest-client/src/main/java/brooklyn/rest/client/BrooklynApi.java
@@ -18,6 +18,7 @@
  */
 package brooklyn.rest.client;
 
+import java.net.URL;
 import javax.ws.rs.core.Response;
 
 import org.jboss.resteasy.client.ClientResponse;
@@ -52,6 +53,10 @@ public class BrooklynApi {
         target = endpoint;
     }
 
+    public BrooklynApi(URL endpoint) {
+        this(endpoint.toString());
+    }
+
     public ActivityApi getActivityApi() {
         return ProxyFactory.create(ActivityApi.class, target);
     }


Mime
View raw message