@zeroc/ice
    Preparing search index...

    Interface ImplicitContext

    Represents 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 ImplicitContext associated with your communicator. The property Ice.ImplicitContext controls if your communicator has an associated implicit context.

    interface ImplicitContext {
        containsKey(key: string): boolean;
        get(key: string): string;
        getContext(): Context;
        put(key: string, value: string): string;
        remove(key: string): string;
        setContext(newContext: Context): void;
    }
    Index

    Methods

    • Checks if the specified key has an associated value in the request context.

      Parameters

      • key: string

        The key.

      Returns boolean

      true if the key has an associated value, false otherwise.

    • Gets the value associated with the specified key in the request context.

      Parameters

      • key: string

        The key.

      Returns string

      The value associated with the key, or the empty string if no value is associated with the key.

    • Gets a copy of the request context maintained by this object.

      Returns Context

      A copy of the request context.

    • Creates or updates a key/value entry in the request context.

      Parameters

      • key: string

        The key.

      • value: string

        The value.

      Returns string

      The previous value associated with the key, if any.

    • Removes the entry for the specified key in the request context.

      Parameters

      • key: string

        The key.

      Returns string

      The value associated with the key, if any.

    • Sets the request context.

      Parameters

      • newContext: Context

        The new request context.

      Returns void