diff --git a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java index d8dec1b..f52013d 100644 --- a/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java +++ b/webapp/src/main/java/org/gcube/resourcemanagement/manager/webapp/rs/RMContext.java @@ -7,6 +7,7 @@ import javax.ws.rs.QueryParam; import javax.ws.rs.core.Response; import javax.ws.rs.core.Response.Status; +import org.gcube.common.authorization.library.provider.CalledMethodProvider; import org.gcube.informationsystem.model.entity.Context; import static org.gcube.resourcemanagement.manager.io.rs.RMContextPath.*; @@ -18,7 +19,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** - * Methods for manipulating {@link Context}s. + * Resource methods for {@link Context}. * * @author Manuele Simi (ISTI-CNR) * @@ -34,6 +35,7 @@ public class RMContext { @POST @Produces(ResourceInitializer.APPLICATION_JSON_CHARSET_UTF_8) public Response create(String json, @QueryParam(FORCE_RRURL_PARAM) String rrURL) { + CalledMethodProvider.instance.set(String.format("POST /%s/%s", APPLICATION_PATH, CONTEXT_ROOT)); logger.info("Requested to create context {} with json {}", Context.NAME, json); logger.info("Force URL: " + rrURL); Response response;