Repository: knox Updated Branches: refs/heads/master 607568408 -> 0064e33d6
KNOX-768 - Apache Kafka REST API Support (Rick Kellogg via Sandeep More) Project: http://git-wip-us.apache.org/repos/asf/knox/repo Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/0064e33d Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/0064e33d Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/0064e33d Branch: refs/heads/master Commit: 0064e33d62a6544d79e1aca7075f369303b23bd3 Parents: 6075684 Author: Sandeep More <m...@apache.org> Authored: Wed Jun 7 13:44:18 2017 -0400 Committer: Sandeep More <m...@apache.org> Committed: Wed Jun 7 13:44:18 2017 -0400 ---------------------------------------------------------------------- .../resources/services/kafka/0.10.0/rewrite.xml | 21 ++++++++++++++++++++ .../resources/services/kafka/0.10.0/service.xml | 21 ++++++++++++++++++++ 2 files changed, 42 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/knox/blob/0064e33d/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/rewrite.xml ---------------------------------------------------------------------- diff --git a/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/rewrite.xml new file mode 100644 index 0000000..9481d69 --- /dev/null +++ b/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/rewrite.xml @@ -0,0 +1,21 @@ +<!-- + 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="KAFKA/kafka/inbound" pattern="*://*:*/**/kafka/{path=**}?{**}"> + <rewrite template="{$serviceUrl[KAFKA]}/{path=**}?{**}"/> + </rule> +</rules> http://git-wip-us.apache.org/repos/asf/knox/blob/0064e33d/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/service.xml ---------------------------------------------------------------------- diff --git a/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/service.xml b/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/service.xml new file mode 100644 index 0000000..4e910b2 --- /dev/null +++ b/gateway-service-definitions/src/main/resources/services/kafka/0.10.0/service.xml @@ -0,0 +1,21 @@ +<!-- + 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="KAFKA" name="kafka" version="0.10.0"> + <routes> + <route path="/kafka/**"/> + </routes> +</service>