Repository: knox
Updated Branches:
  refs/heads/master f8909f52a -> 96728794b


KNOX-1371 - Add adapters for classes used by redirect.jsp


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

Branch: refs/heads/master
Commit: 96728794b9303e12568c83c62b1c0e599549e493
Parents: f8909f5
Author: Sandeep More <m...@apache.org>
Authored: Sun Jul 1 11:39:50 2018 -0400
Committer: Sandeep More <m...@apache.org>
Committed: Sun Jul 1 11:39:50 2018 -0400

----------------------------------------------------------------------
 .../apache/hadoop/gateway/topology/Service.java | 112 ++++++++++++++++
 .../hadoop/gateway/topology/Topology.java       | 128 +++++++++++++++++++
 .../apache/hadoop/gateway/util/RegExUtils.java  |  22 ++++
 3 files changed, 262 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/96728794/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Service.java
----------------------------------------------------------------------
diff --git 
a/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Service.java 
b/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Service.java
new file mode 100644
index 0000000..f4362c8
--- /dev/null
+++ 
b/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Service.java
@@ -0,0 +1,112 @@
+/**
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.
+ */
+package org.apache.hadoop.gateway.topology;
+
+import org.apache.knox.gateway.topology.Param;
+import org.apache.knox.gateway.topology.Version;
+
+import java.util.Collection;
+import java.util.List;
+import java.util.Map;
+
+@Deprecated
+public class Service extends org.apache.knox.gateway.topology.Service {
+  @Override
+  public String getRole() {
+    return super.getRole();
+  }
+
+  @Override
+  public void setRole(String role) {
+    super.setRole(role);
+  }
+
+  @Override
+  public String getName() {
+    return super.getName();
+  }
+
+  @Override
+  public void setName(String name) {
+    super.setName(name);
+  }
+
+  @Override
+  public Version getVersion() {
+    return super.getVersion();
+  }
+
+  @Override
+  public void setVersion(Version version) {
+    super.setVersion(version);
+  }
+
+  @Override
+  public List<String> getUrls() {
+    return super.getUrls();
+  }
+
+  @Override
+  public void setUrls(List<String> urls) {
+    super.setUrls(urls);
+  }
+
+  @Override
+  public String getUrl() {
+    return super.getUrl();
+  }
+
+  @Override
+  public void addUrl(String url) {
+    super.addUrl(url);
+  }
+
+  @Override
+  public Map<String, String> getParams() {
+    return super.getParams();
+  }
+
+  @Override
+  public Collection<Param> getParamsList() {
+    return super.getParamsList();
+  }
+
+  @Override
+  public void setParamsList(Collection<Param> params) {
+    super.setParamsList(params);
+  }
+
+  @Override
+  public void setParams(Map<String, String> params) {
+    super.setParams(params);
+  }
+
+  @Override
+  public void addParam(Param param) {
+    super.addParam(param);
+  }
+
+  @Override
+  public boolean equals(Object object) {
+    return super.equals(object);
+  }
+
+  @Override
+  public int hashCode() {
+    return super.hashCode();
+  }
+}

http://git-wip-us.apache.org/repos/asf/knox/blob/96728794/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Topology.java
----------------------------------------------------------------------
diff --git 
a/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Topology.java
 
b/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Topology.java
new file mode 100644
index 0000000..9854cc1
--- /dev/null
+++ 
b/gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Topology.java
@@ -0,0 +1,128 @@
+/**
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.
+ */
+package org.apache.hadoop.gateway.topology;
+
+import org.apache.knox.gateway.topology.Application;
+import org.apache.knox.gateway.topology.Provider;
+import org.apache.knox.gateway.topology.Service;
+import org.apache.knox.gateway.topology.Version;
+
+import java.net.URI;
+import java.util.Collection;
+
+@Deprecated
+public class Topology extends org.apache.knox.gateway.topology.Topology {
+
+  public Topology() {
+    super();
+  }
+
+  @Override
+  public URI getUri() {
+    return super.getUri();
+  }
+
+  @Override
+  public void setUri(URI uri) {
+    super.setUri(uri);
+  }
+
+  @Override
+  public String getName() {
+    return super.getName();
+  }
+
+  @Override
+  public void setName(String name) {
+    super.setName(name);
+  }
+
+  @Override
+  public long getTimestamp() {
+    return super.getTimestamp();
+  }
+
+  @Override
+  public void setTimestamp(long timestamp) {
+    super.setTimestamp(timestamp);
+  }
+
+  @Override
+  public String getDefaultServicePath() {
+    return super.getDefaultServicePath();
+  }
+
+  @Override
+  public void setDefaultServicePath(String servicePath) {
+    super.setDefaultServicePath(servicePath);
+  }
+
+  @Override
+  public void setGenerated(boolean isGenerated) {
+    super.setGenerated(isGenerated);
+  }
+
+  @Override
+  public boolean isGenerated() {
+    return super.isGenerated();
+  }
+
+  @Override
+  public Collection<Service> getServices() {
+    return super.getServices();
+  }
+
+  @Override
+  public Service getService(String role, String name, Version version) {
+    return super.getService(role, name, version);
+  }
+
+  @Override
+  public void addService(Service service) {
+    super.addService(service);
+  }
+
+  @Override
+  public Collection<Application> getApplications() {
+    return super.getApplications();
+  }
+
+  @Override
+  public Application getApplication(String url) {
+    return super.getApplication(url);
+  }
+
+  @Override
+  public void addApplication(Application application) {
+    super.addApplication(application);
+  }
+
+  @Override
+  public Collection<Provider> getProviders() {
+    return super.getProviders();
+  }
+
+  @Override
+  public Provider getProvider(String role, String name) {
+    return super.getProvider(role, name);
+  }
+
+  @Override
+  public void addProvider(Provider provider) {
+    super.addProvider(provider);
+  }
+}

http://git-wip-us.apache.org/repos/asf/knox/blob/96728794/gateway-adapter/src/main/java/org/apache/hadoop/gateway/util/RegExUtils.java
----------------------------------------------------------------------
diff --git 
a/gateway-adapter/src/main/java/org/apache/hadoop/gateway/util/RegExUtils.java 
b/gateway-adapter/src/main/java/org/apache/hadoop/gateway/util/RegExUtils.java
new file mode 100644
index 0000000..6f09317
--- /dev/null
+++ 
b/gateway-adapter/src/main/java/org/apache/hadoop/gateway/util/RegExUtils.java
@@ -0,0 +1,22 @@
+/**
+ * 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
+ * <p>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p>
+ * 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.
+ */
+package org.apache.hadoop.gateway.util;
+
+@Deprecated
+public class RegExUtils extends org.apache.knox.gateway.util.RegExUtils {
+
+}

Reply via email to