Ice 3.7 Slice API Reference
ImplicitContext.ice
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #pragma once
6 
7 [["cpp:dll-export:ICE_API"]]
8 [["cpp:doxygen:include:Ice/Ice.h"]]
9 [["cpp:header-ext:h"]]
10 
11 [["ice-prefix"]]
12 
13 [["js:module:ice"]]
14 [["js:cjs-module"]]
15 
16 [["objc:dll-export:ICE_API"]]
17 [["objc:header-dir:objc"]]
18 
19 [["python:pkgdir:Ice"]]
20 
21 #include <Ice/LocalException.ice>
22 #include <Ice/Current.ice>
23 
24 #ifndef __SLICE2JAVA_COMPAT__
25 [["java:package:com.zeroc"]]
26 #endif
27 
28 ["objc:prefix:ICE"]
29 module Ice
30 {
31 
57 local interface ImplicitContext
58 {
64  ["cpp:const", "swift:noexcept"] Context getContext();
65 
72  ["swift:noexcept"] void setContext(Context newContext);
73 
82  ["cpp:const", "swift:noexcept"] bool containsKey(string key);
83 
95  ["cpp:const", "swift:noexcept"] string get(string key);
96 
107  ["swift:noexcept"] string put(string key, string \value);
108 
117  ["swift:noexcept"] string remove(string key);
118 }
119 }
Ice::ImplicitContext::setContext
void setContext(Context newContext)
Set the underlying context.
Ice::ImplicitContext::put
string put(string key, string \value)
Create or update a key/value entry in the underlying context.
Ice::ImplicitContext
An interface to associate implict contexts with communicators.
Definition: ImplicitContext.ice:58
LocalException.ice
Ice::ImplicitContext::getContext
Context getContext()
Get a copy of the underlying context.
Ice::ImplicitContext::containsKey
bool containsKey(string key)
Check if this key has an associated value in the underlying context.
Ice
The Ice core library.
Definition: BuiltinSequences.ice:27
Current.ice
Ice::Context
dictionary< string, string > Context
A request context.
Definition: Current.ice:42