ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: IGNITE-1155 Rename method.
Date Tue, 04 Aug 2015 15:32:02 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-1155_1 08ece040b -> 9bd94a640


IGNITE-1155 Rename method.


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

Branch: refs/heads/ignite-1155_1
Commit: 9bd94a640ddc5aa4fb542598a59ed1537053478b
Parents: 08ece04
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Tue Aug 4 18:31:55 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Tue Aug 4 18:31:55 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/agent/handlers/RestExecutor.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9bd94a64/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/RestExecutor.java
----------------------------------------------------------------------
diff --git a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/RestExecutor.java
b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/RestExecutor.java
index aec4138..6531ad9 100644
--- a/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/RestExecutor.java
+++ b/modules/control-center-agent/src/main/java/org/apache/ignite/agent/handlers/RestExecutor.java
@@ -70,13 +70,13 @@ public class RestExecutor {
 
     /**
      * @param path Path.
-     * @param method Method.
+     * @param mtd Method.
      * @param params Params.
      * @param headers Headers.
      * @param body Body.
      */
     @Remote
-    public RestResult executeRest(String path, Map<String, String> params, String method,
Map<String, String> headers,
+    public RestResult executeRest(String path, Map<String, String> params, String mtd,
Map<String, String> headers,
         String body) throws IOException, URISyntaxException {
         URIBuilder builder = new URIBuilder(cfg.getNodeUri());
 
@@ -94,9 +94,9 @@ public class RestExecutor {
 
         HttpRequestBase httpReq;
 
-        if ("GET".equalsIgnoreCase(method))
+        if ("GET".equalsIgnoreCase(mtd))
             httpReq = new HttpGet(builder.build());
-        else if ("POST".equalsIgnoreCase(method)) {
+        else if ("POST".equalsIgnoreCase(mtd)) {
             HttpPost post;
 
             if (body == null) {
@@ -118,7 +118,7 @@ public class RestExecutor {
             httpReq = post;
         }
         else
-            throw new IOException("Unknown HTTP-method: " + method);
+            throw new IOException("Unknown HTTP-method: " + mtd);
 
         if (headers != null) {
             for (Map.Entry<String, String> entry : headers.entrySet())


Mime
View raw message