ImplicitContext class abstract
An interface to associate implict contexts with communicators.
When you make a remote invocation without an explicit context parameter,
Ice uses the per-proxy context (if any) combined with the ImplicitContext
associated with the communicator.
Ice provides several implementations of ImplicitContext
. The implementation
used depends on the value of the Ice.ImplicitContext
property.
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.
ImplicitContext
also provides a number of operations to create, update or retrieve
an entry in the underlying context without first retrieving a copy of the entire
context. These operations correspond to a subset of the java.util.Map
methods,
with java.lang.Object
replaced by string
and null replaced by the empty-string.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
containsKey(
String key) → bool - Check if this key has an associated value in the underlying context.
-
get(
String key) → String - Get the value associated with the given key in the underlying context. Returns an empty string if no value is associated with the key. {@link #containsKey} allows you to distinguish between an empty-string value and no value at all.
-
getContext(
) → Context - Get a copy of the underlying context. @return A copy of the underlying context.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
put(
String key, String value) → String - Create or update a key/value entry in the underlying context.
-
remove(
String key) → String - Remove the entry for the given key in the underlying context.
-
setContext(
Context newContext) → void - Set the underlying context.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited