KNOX-1371 - Add adapters for classes used by redirect.jsp
authorSandeep More <more@apache.org>
Sun, 1 Jul 2018 15:39:50 +0000 (11:39 -0400)
committerSandeep More <more@apache.org>
Sun, 1 Jul 2018 15:39:50 +0000 (11:39 -0400)
gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Service.java [new file with mode: 0644]
gateway-adapter/src/main/java/org/apache/hadoop/gateway/topology/Topology.java [new file with mode: 0644]
gateway-adapter/src/main/java/org/apache/hadoop/gateway/util/RegExUtils.java [new file with mode: 0644]

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 (file)
index 0000000..f4362c8
--- /dev/null
@@ -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();
+  }
+}
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 (file)
index 0000000..9854cc1
--- /dev/null
@@ -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);
+  }
+}
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 (file)
index 0000000..6f09317
--- /dev/null
@@ -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 {
+
+}