Separated dispatch from filters and added custom dispatch config KNOX-483

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

Branch: refs/heads/KNOX-481
Commit: 6ada46efd5e3b36fe721ab9baf118a5fe839d009
Parents: 87ce454
Author: Sumit Gupta <su...@apache.org>
Authored: Thu Jan 15 23:46:01 2015 -0500
Committer: Sumit Gupta <su...@apache.org>
Committed: Thu Feb 12 17:16:05 2015 -0500

----------------------------------------------------------------------
 .../gateway/service/definition/ServiceDefinition.java    | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/6ada46ef/gateway-service-definitions/src/main/java/org/apache/hadoop/gateway/service/definition/ServiceDefinition.java
----------------------------------------------------------------------
diff --git 
a/gateway-service-definitions/src/main/java/org/apache/hadoop/gateway/service/definition/ServiceDefinition.java
 
b/gateway-service-definitions/src/main/java/org/apache/hadoop/gateway/service/definition/ServiceDefinition.java
index cbb9309..9cbb9e0 100644
--- 
a/gateway-service-definitions/src/main/java/org/apache/hadoop/gateway/service/definition/ServiceDefinition.java
+++ 
b/gateway-service-definitions/src/main/java/org/apache/hadoop/gateway/service/definition/ServiceDefinition.java
@@ -38,6 +38,8 @@ public class ServiceDefinition {
 
   private CustomDispatch dispatch;
 
+  private CustomDispatch dispatch;
+
   @XmlAttribute
   public String getName() {
     return name;
@@ -93,4 +95,13 @@ public class ServiceDefinition {
   public void setDispatch(CustomDispatch dispatch) {
     this.dispatch = dispatch;
   }
+
+  @XmlElement(name = "dispatch")
+  public CustomDispatch getDispatch() {
+    return dispatch;
+  }
+
+  public void setDispatch(CustomDispatch dispatch) {
+    this.dispatch = dispatch;
+  }
 }

Reply via email to