Updated Branches: refs/heads/master ed4f4e4d4 -> 0eb46fd18
utility method for REST invocation Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/0eb46fd1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/0eb46fd1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/0eb46fd1 Branch: refs/heads/master Commit: 0eb46fd18898a2dd1a0ca2076e5efb0f89b58b00 Parents: ed4f4e4 Author: Pradeep Fernando <[email protected]> Authored: Thu Jan 2 16:02:59 2014 +0530 Committer: Pradeep Fernando <[email protected]> Committed: Thu Jan 2 16:02:59 2014 +0530 ---------------------------------------------------------------------- components/org.apache.stratos.manager.console/util/utility.jag | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/0eb46fd1/components/org.apache.stratos.manager.console/util/utility.jag ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/util/utility.jag b/components/org.apache.stratos.manager.console/util/utility.jag index dcc81da..ff42a3d 100644 --- a/components/org.apache.stratos.manager.console/util/utility.jag +++ b/components/org.apache.stratos.manager.console/util/utility.jag @@ -85,6 +85,12 @@ function getBackendServerURL(){ consoleAppUtil = new function(){ var log = new Log(); + + this.getAvailableCartridges = function(){ + return this.makeRequest() + }; + + this.makeRequest = function(httpMethod,urlPostFix,data){ var endpoint = getBackendServerURL() + urlPostFix; var headers = getAuthenticationHeader();
