Uses of Interface
com.sap.cds.services.request.RequestContext
-
Uses of RequestContext in com.sap.cds.services.request
Modifier and TypeMethodDescriptionstatic RequestContext
RequestContext.getCurrent
(CdsRuntime runtime) Gives access to either the currentRequestContext
, or if this does not exist to a helperRequestContext
that itself ensures that there is always aRequestContext
opened.RequestContextAccessor.getCurrent
(CdsRuntime runtime) Gives access to either the currentRequestContext
, or if this does not exist to a helperRequestContext
that itself ensures that there is always aRequestContext
opened. -
Uses of RequestContext in com.sap.cds.services.runtime
Modifier and TypeMethodDescriptionvoid
RequestContextRunner.run
(Consumer<RequestContext> requestHandler) Opens aRequestContext
and runs the given handler within its scope.<T> T
RequestContextRunner.run
(Function<RequestContext, T> requestHandler) Opens aRequestContext
and runs the given handler within its scope.