aboutsummaryrefslogtreecommitdiffstats
path: root/aai-resources/src/main
diff options
context:
space:
mode:
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-10-22 10:56:11 +0200
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>2024-10-22 11:08:07 +0200
commitecd6201899fc1f6d0e72bb4951538a3f491a3b1b (patch)
tree4e8d6d24af7d6c034564ee2a2eb1e66da7e50e82 /aai-resources/src/main
parentb699645034a7b16102637c411b9208587598e155 (diff)
Rename LegacyMoxyConsumer to ResourcesController
Issue-ID: AAI-4024 Change-Id: I0ac91e35b4510ac44c0c681dcc24f67c5c90db1b Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'aai-resources/src/main')
-rw-r--r--aai-resources/src/main/java/org/onap/aai/rest/ResourcesController.java (renamed from aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java)9
-rw-r--r--aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java4
2 files changed, 5 insertions, 8 deletions
diff --git a/aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java b/aai-resources/src/main/java/org/onap/aai/rest/ResourcesController.java
index 689e0b40..f8d1df84 100644
--- a/aai-resources/src/main/java/org/onap/aai/rest/LegacyMoxyConsumer.java
+++ b/aai-resources/src/main/java/org/onap/aai/rest/ResourcesController.java
@@ -60,15 +60,12 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
-/**
- * The Class LegacyMoxyConsumer.
- */
+@Timed
@Controller
@Path("{version: v[1-9][0-9]*|latest}")
-@Timed
-public class LegacyMoxyConsumer extends RESTAPI {
+public class ResourcesController extends RESTAPI {
- private static final Logger logger = LoggerFactory.getLogger(LegacyMoxyConsumer.class.getName());
+ private static final Logger logger = LoggerFactory.getLogger(ResourcesController.class.getName());
@PUT
@Path("/{uri: .+}")
diff --git a/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java b/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java
index ccbb68e7..29c122ac 100644
--- a/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java
+++ b/aai-resources/src/main/java/org/onap/aai/web/JerseyConfiguration.java
@@ -41,7 +41,7 @@ import org.glassfish.jersey.server.ResourceConfig;
import org.onap.aai.rest.BulkAddConsumer;
import org.onap.aai.rest.BulkProcessConsumer;
import org.onap.aai.rest.ExampleConsumer;
-import org.onap.aai.rest.LegacyMoxyConsumer;
+import org.onap.aai.rest.ResourcesController;
import org.onap.aai.rest.URLFromVertexIdConsumer;
import org.onap.aai.rest.VertexIdConsumer;
import org.onap.aai.rest.bulk.BulkSingleTransactionConsumer;
@@ -78,7 +78,7 @@ public class JerseyConfiguration {
Set<Class<?>> classes = Sets.newHashSet(EchoResponse.class, VertexIdConsumer.class, ExampleConsumer.class,
BulkAddConsumer.class, BulkProcessConsumer.class, BulkSingleTransactionConsumer.class,
- LegacyMoxyConsumer.class, URLFromVertexIdConsumer.class);
+ ResourcesController.class, URLFromVertexIdConsumer.class);
resourceConfig.registerClasses(classes);
registerFiltersForClasses(resourceConfig, ContainerRequestFilter.class, ContainerResponseFilter.class,
ReaderInterceptor.class,