Ice.ImplicitContext¶
- final class Ice.ImplicitContext(impl: ImplicitContext)¶
Bases:
objectRepresents the request context associated with a communicator. When you make a remote invocation without an explicit request context parameter, Ice uses the per-proxy request context (if any) combined with the
ImplicitContextassociated with your communicator.The property
Ice.ImplicitContextcontrols if your communicator has an associated implicit context, and when it does, whether this implicit context is per-thread or shared by all threads:- None (default):
No implicit context at all.
- PerThread:
The implementation maintains a context per thread.
- Shared:
The implementation maintains a single context shared by all threads.
- Parameters:
impl (ImplicitContext)
- containsKey(key: str) bool¶
Checks if the specified key has an associated value in the request context.
- get(key: str) str¶
Gets the value associated with the specified key in the request context.
- Parameters:
key (str) – The key.
- Returns:
The value associated with the key, or the empty string if no value is associated with the key.
containsKey()allows you to distinguish between an empty-string value and no value at all.- Return type: