knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dillido...@apache.org
Subject git commit: renamed getCachedKnoxAppCookie() method to getCachedAppCookie()
Date Wed, 21 Aug 2013 22:06:15 GMT
Updated Branches:
  refs/heads/master f8c9504f7 -> cf0bf5674


renamed getCachedKnoxAppCookie() method to getCachedAppCookie()


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

Branch: refs/heads/master
Commit: cf0bf56745f8ef2dce83f3a029ca6c02efc575c0
Parents: f8c9504
Author: Dilli Dorai Arumugam <darumugam@hortonworks.com>
Authored: Wed Aug 21 15:03:32 2013 -0700
Committer: Dilli Dorai Arumugam <darumugam@hortonworks.com>
Committed: Wed Aug 21 15:03:55 2013 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/gateway/dispatch/AppCookieManager.java     | 2 +-
 .../org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java   | 2 +-
 .../org/apache/hadoop/gateway/dispatch/AppCookieManagerTest.java | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/cf0bf567/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/AppCookieManager.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/AppCookieManager.java
b/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/AppCookieManager.java
index d0f0ecc..50c120e 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/AppCookieManager.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/AppCookieManager.java
@@ -138,7 +138,7 @@ public class AppCookieManager {
    * 
    * @return the cached app cookie, can be null
    */
-  public String getCachedKnoxAppCookie() {
+  public String getCachedAppCookie() {
     return appCookie;
   }
   

http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/cf0bf567/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
b/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
index ac8d85c..67bf412 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/dispatch/HttpClientDispatch.java
@@ -89,7 +89,7 @@ public class HttpClientDispatch extends AbstractGatewayDispatch {
       } else { 
         // Kerberos secured, no delegation token in query string
         outboundRequest.removeHeaders(COOKIE);
-        String appCookie = appCookieManager.getCachedKnoxAppCookie();
+        String appCookie = appCookieManager.getCachedAppCookie();
         if (appCookie != null) {
           outboundRequest.addHeader(new BasicHeader(COOKIE, appCookie));
         }

http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/cf0bf567/gateway-server/src/test/java/org/apache/hadoop/gateway/dispatch/AppCookieManagerTest.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/test/java/org/apache/hadoop/gateway/dispatch/AppCookieManagerTest.java
b/gateway-server/src/test/java/org/apache/hadoop/gateway/dispatch/AppCookieManagerTest.java
index 704c41c..94ef797 100644
--- a/gateway-server/src/test/java/org/apache/hadoop/gateway/dispatch/AppCookieManagerTest.java
+++ b/gateway-server/src/test/java/org/apache/hadoop/gateway/dispatch/AppCookieManagerTest.java
@@ -28,8 +28,8 @@ import org.junit.Test;
 public class AppCookieManagerTest {
 
   @Test
-  public void getCachedKnoxAppCookie() {
-    assertNull(new AppCookieManager().getCachedKnoxAppCookie());
+  public void getCachedAppCookie() {
+    assertNull(new AppCookieManager().getCachedAppCookie());
   }
 
   @Test


Mime
View raw message