Package | Description |
---|---|
com.sap.cds.services.request | |
com.sap.cds.services.runtime |
Modifier and Type | Method and Description |
---|---|
RequestContext |
RequestContextAccessor.getCurrent(CdsRuntime runtime)
Gives access to either the current
RequestContext ,
or if this does not exist to a helper RequestContext that itself ensures that there is always a RequestContext opened. |
static RequestContext |
RequestContext.getCurrent(CdsRuntime runtime)
Gives access to either the current
RequestContext ,
or if this does not exist to a helper RequestContext that itself ensures that there is always a RequestContext opened. |
Modifier and Type | Method and Description |
---|---|
void |
RequestContextRunner.run(Consumer<RequestContext> requestHandler)
Opens a
RequestContext and runs the given handler within its scope. |
<T> T |
RequestContextRunner.run(Function<RequestContext,T> requestHandler)
Opens a
RequestContext and runs the given handler within its scope. |
default void |
CdsRuntime.runInRequestContext(Request request,
Consumer<RequestContext> requestHandler)
Deprecated.
|
<T> T |
CdsRuntime.runInRequestContext(Request request,
Function<RequestContext,T> requestHandler)
Deprecated.
|
Copyright © 2023. All rights reserved.