knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject git commit: KNOX-385 - removed the config element for path to forward to and derive the path from the default topology name instead
Date Wed, 21 May 2014 20:46:38 GMT
Repository: knox
Updated Branches:
  refs/heads/master b38d5f944 -> da358949d


KNOX-385 - removed the config element for path to forward to and derive the path from the
default topology name instead

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

Branch: refs/heads/master
Commit: da358949d3b3c8dee925688bd8c0b2d7ad98d786
Parents: b38d5f9
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Wed May 21 16:46:27 2014 -0400
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Wed May 21 16:46:27 2014 -0400

----------------------------------------------------------------------
 .../apache/hadoop/gateway/config/impl/GatewayConfigImpl.java    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/da358949/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java
b/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java
index c446b20..53ce31f 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/config/impl/GatewayConfigImpl.java
@@ -64,8 +64,6 @@ import java.util.Map;
  */
 public class GatewayConfigImpl extends Configuration implements GatewayConfig {
 
-  private static final String DEFAULT_APP_REDIRECT_PATH_PARAM = "default.app.redirect.path";
-  private static final String DEFAULT_APP_REDIRECT_PATH = "/sandbox";
   private static final String GATEWAY_DEFAULT_TOPOLOGY_NAME_PARAM = "default.app.topology.name";
   private static final String GATEWAY_DEFAULT_TOPOLOGY_NAME = "sandbox";
 
@@ -332,8 +330,7 @@ public class GatewayConfigImpl extends Configuration implements GatewayConfig
{
    */
   @Override
   public String getDefaultAppRedirectPath() {
-    String path = get(DEFAULT_APP_REDIRECT_PATH_PARAM);
-    return path != null ? path : "/" + getGatewayPath() + DEFAULT_APP_REDIRECT_PATH;
+    return "/" + getGatewayPath() + "/" + getDefaultTopologyName();
   }
   
 }


Mime
View raw message