From f9db29ac07cf571f38bb50b1a7b6a7e9a4513197 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 7 May 2024 12:25:13 +0200 Subject: [PATCH] added CalledMethodHandler [#26707] --- .../service/accounting/CalledMethodHandler.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 geoportal-service/src/main/java/org/gcube/application/geoportal/service/accounting/CalledMethodHandler.java diff --git a/geoportal-service/src/main/java/org/gcube/application/geoportal/service/accounting/CalledMethodHandler.java b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/accounting/CalledMethodHandler.java new file mode 100644 index 0000000..77055b9 --- /dev/null +++ b/geoportal-service/src/main/java/org/gcube/application/geoportal/service/accounting/CalledMethodHandler.java @@ -0,0 +1,16 @@ +package org.gcube.application.geoportal.service.accounting; + +import org.gcube.common.authorization.library.provider.CalledMethodProvider; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class CalledMethodHandler { + + private final static Logger logger = LoggerFactory.getLogger(CalledMethodHandler.class); + + public static void setCalledMethod(String method) { + logger.debug("setCalledMethod as {}", method); + CalledMethodProvider.instance.set(method); + } + +} \ No newline at end of file