knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject knox git commit: KNOX-817 Gateway service definition for Avatica (Josh Elser via lmccay)
Date Fri, 16 Dec 2016 01:05:18 GMT
Repository: knox
Updated Branches:
  refs/heads/master f1d0ab8b5 -> 785ea084a


KNOX-817 Gateway service definition for Avatica (Josh Elser via lmccay)

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

Branch: refs/heads/master
Commit: 785ea084a617df7ad637a7afed9740bd569c07ae
Parents: f1d0ab8
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Thu Dec 15 20:05:03 2016 -0500
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Thu Dec 15 20:05:03 2016 -0500

----------------------------------------------------------------------
 .../services/avatica/1.9.0/rewrite.xml          | 24 +++++++++++++++
 .../services/avatica/1.9.0/service.xml          | 32 ++++++++++++++++++++
 2 files changed, 56 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/785ea084/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/rewrite.xml
new file mode 100644
index 0000000..ad7167f
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/rewrite.xml
@@ -0,0 +1,24 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<rules>
+  <rule dir="IN" name="AVATICA/avatica/inbound/root" pattern="*://*:*/**/avatica/">
+    <rewrite template="{$serviceUrl[AVATICA]}/"/>
+  </rule>
+  <rule dir="IN" name="AVATICA/avatica/inbound/path" pattern="*://*:*/**/avatica/{**}">
+    <rewrite template="{$serviceUrl[AVATICA]}/{**}"/>
+  </rule>
+</rules>

http://git-wip-us.apache.org/repos/asf/knox/blob/785ea084/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/service.xml
b/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/service.xml
new file mode 100644
index 0000000..052428c
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/avatica/1.9.0/service.xml
@@ -0,0 +1,32 @@
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one or more
+   contributor license agreements.  See the NOTICE file distributed with
+   this work for additional information regarding copyright ownership.
+   The ASF licenses this file to You under the Apache License, Version 2.0
+   (the "License"); you may not use this file except in compliance with
+   the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+-->
+<service role="AVATICA" name="avatica" version="1.9.0">
+  <policies>
+        <policy role="webappsec"/>
+        <policy role="authentication"/>
+        <policy role="rewrite"/>
+        <policy role="authorization"/>
+  </policies>
+  <routes>
+    <route path="/avatica">
+        <rewrite apply="AVATICA/avatica/inbound/root" to="request.url"/>
+    </route>
+    <route path="/avatica/**">
+        <rewrite apply="AVATICA/avatica/inbound/path" to="request.url"/>
+    </route>
+  </routes>
+</service>


Mime
View raw message