public interface McpTransportContext
限定符和类型 | 字段和说明 |
---|---|
static McpTransportContext |
EMPTY
An empty, unmodifiable context.
|
static java.lang.String |
KEY
Key for use in Reactor Context to transport the context to user land.
|
限定符和类型 | 方法和说明 |
---|---|
McpTransportContext |
copy()
Copies the contents of the context to allow further modifications without affecting
the initial object.
|
java.lang.Object |
get(java.lang.String key)
Extract a value from the context.
|
void |
put(java.lang.String key,
java.lang.Object value)
Inserts a value for a given key.
|
static final java.lang.String KEY
static final McpTransportContext EMPTY
java.lang.Object get(java.lang.String key)
key
- the key under the data is expectednull
if missing.void put(java.lang.String key, java.lang.Object value)
key
- a String representing the keyvalue
- the value to storeMcpTransportContext copy()