public class ExecutionContext
extends java.lang.Object
implements java.io.Serializable
ExecutionContext
class provides information about the
execution of an API method invocation.
It consists of
Modifier and Type | Class and Description |
---|---|
static class |
ExecutionContext.ApplicationData
Immutable class representing additional application specific data
associated with the request for method execution represented by this
ExecutionContext . |
static class |
ExecutionContext.Builder |
static class |
ExecutionContext.RuntimeData
This class contains data and settings related to the execution of the
invocation by the vAPI runtime, protocol and transport.
|
static interface |
ExecutionContext.SecurityContext
Implementations of this interface will provide all needed data for
authentication for the given invocation.
|
Modifier and Type | Field and Description |
---|---|
static ExecutionContext |
EMPTY
Empty context
|
Constructor and Description |
---|
ExecutionContext()
Default constructor.
|
ExecutionContext(ExecutionContext.ApplicationData wireData,
ExecutionContext.SecurityContext securityContext)
Do not use this constructor to recreate
ExecutionContext
instances with modified parameters. |
ExecutionContext(ExecutionContext.ApplicationData wireData,
ExecutionContext.SecurityContext securityContext,
ExecutionContext.RuntimeData runtimeData)
Do not use this constructor to recreate
ExecutionContext
instances with modified parameters. |
ExecutionContext(ExecutionContext.SecurityContext securityContext)
Do not use this constructor to recreate
ExecutionContext
instances with modified parameters. |
Modifier and Type | Method and Description |
---|---|
ExecutionContext.ApplicationData |
retrieveApplicationData() |
ExecutionContext.RuntimeData |
retrieveRuntimeData() |
ExecutionContext.SecurityContext |
retrieveSecurityContext() |
ExecutionContext |
withApplicationData(ExecutionContext.ApplicationData appData)
Returns a new
ExecutionContext instance with replaced application
data |
ExecutionContext |
withSecurityContext(ExecutionContext.SecurityContext secCtx)
Returns a new
ExecutionContext instance with replaced security
context |
public static final ExecutionContext EMPTY
public ExecutionContext()
ExecutionContext
.
Use EMPTY
when distinct instance is not
required.
public ExecutionContext(ExecutionContext.SecurityContext securityContext)
ExecutionContext
instances with modified parameters. Leverage the ExecutionContext.Builder
class
instead.securityContext
- may be null
public ExecutionContext(ExecutionContext.ApplicationData wireData, ExecutionContext.SecurityContext securityContext)
ExecutionContext
instances with modified parameters. Leverage the ExecutionContext.Builder
class
instead.wireData
- may be null
securityContext
- may be null
public ExecutionContext(ExecutionContext.ApplicationData wireData, ExecutionContext.SecurityContext securityContext, ExecutionContext.RuntimeData runtimeData)
ExecutionContext
instances with modified parameters. Leverage the ExecutionContext.Builder
class
instead.wireData
- may be null
securityContext
- may be null
runtimeData
- may be null
public ExecutionContext withApplicationData(ExecutionContext.ApplicationData appData)
ExecutionContext
instance with replaced application
dataappData
- ExecutionContext.ApplicationData
to be used in the new instanceExecutionContext
instance with updated
ExecutionContext.ApplicationData
public ExecutionContext withSecurityContext(ExecutionContext.SecurityContext secCtx)
ExecutionContext
instance with replaced security
contextsecCtx
- ExecutionContext.SecurityContext
to be used in the new instanceExecutionContext
instance with updated
ExecutionContext.SecurityContext
public ExecutionContext.ApplicationData retrieveApplicationData()
null
public ExecutionContext.SecurityContext retrieveSecurityContext()
null
public ExecutionContext.RuntimeData retrieveRuntimeData()
null