/usr/share/doc/ice34-slice/reference/Ice/ImplicitContext.html is in ice34-slice 3.4.2-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
Ice::ImplicitContext
</title>
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
}
.Page {
width: 850px;
margin-left: auto;
margin-right: auto;
}
.Symbol {
font-family: "Courier New", Courier, mono;
}
.Synopsis {
font-family: "Courier New", Courier, mono;
font-weight: bold;
}
.Deprecated {
font-style: italic;
}
.Warning {
font-style: italic;
}
.Note {
font-style: italic;
}
.HeaderFooter {
width: 100%;
}
.Logo {
border-style: none;
}
.LogoTable {
}
.Button {
border-style: none;
}
.ButtonGrey {
border-style: none;
cursor: default;
}
</style>
</head>
<body>
<div class="Page">
<!-- SwishCommand noindex -->
<table class="HeaderFooter">
<tr>
<td align="left">
<table>
<tr>
<td><a href="../index.html"><img class="Button" src="../images/home.gif" alt="Home"></a></td>
<td><a href="IllegalMessageSizeException.html"><img class="Button" src="../images/prev.gif" alt="Previous"></a></td>
<td><a href="../Ice.html"><img class="Button" src="../images/up.gif" alt="Up"></a></td>
<td><a href="InitializationException.html"><img class="Button" src="../images/next.gif" alt="Next"></a></td>
<td><a href="../_sindex.html"><img class="Button" src="../images/index.gif" alt="Index"></a></td>
</tr>
</table>
</td>
<td align="center">
<table>
<tr>
<td>
<form method="get" action="/cgi-bin/swish.cgi" enctype="application/x-www-form-urlencoded" class="form">
<div>
<input maxlength="100" value="" type="text" name="query">
<input type="submit" value="Search" name="submit"></div>
</form></td>
</tr>
</table>
</td>
<td align="right">
<table class="LogoTable">
<tr>
<td><a href="http://www.zeroc.com"><img class="Logo" src="../images/logo.gif" alt="Logo"></a></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- SwishCommand index -->
<hr>
<h1 class="Symbol">Ice::ImplicitContext</h1>
<h2>Overview</h2>
<h3 class="Synopsis">local interface ImplicitContext</h3>
<p>
An interface to associate implict contexts with communicators.
When you make a remote invocation without an explicit <a class="Symbol" href="../Ice.html#Context">Context</a> parameter,
Ice uses the per-proxy <a class="Symbol" href="../Ice.html#Context">Context</a> (if any) combined with the <tt>ImplicitContext</tt>
associated with the communicator.</p>
<p>Ice provides several implementations of <tt>ImplicitContext</tt>. The implementation
used depends on the value of the <tt>Ice.ImplicitContext</tt> property.
<dl>
<dt><tt>None</tt> (default)</dt>
<dd>No implicit context at all.</dd>
<dt><tt>PerThread</tt></dt>
<dd>The implementation maintains a <a class="Symbol" href="../Ice.html#Context">Context</a> per thread.</dd>
<dt><tt>Shared</tt></dt>
<dd>The implementation maintains a single <a class="Symbol" href="../Ice.html#Context">Context</a> shared
by all threads.</dd>
</dl><p>
<tt>ImplicitContext</tt> 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 <tt>java.util.Map</tt> methods,
with <tt>java.lang.Object</tt> replaced by <tt>string</tt> and null replaced by the empty-string.</p>
<h4>Used By</h4>
<dl>
<dt class="Symbol"><a class="Symbol" href="Communicator.html#getImplicitContext">Communicator::getImplicitContext</a></dt>
</dl>
<h2>Operation Index</h2>
<dl>
<dt class="Symbol"><a class="Symbol" href="#getContext">getContext</a></dt>
<dd>
Get a copy of the underlying context.</dd>
<dt class="Symbol"><a class="Symbol" href="#setContext">setContext</a></dt>
<dd>
Set the underlying context.</dd>
<dt class="Symbol"><a class="Symbol" href="#containsKey">containsKey</a></dt>
<dd>
Check if this key has an associated value in the underlying context.</dd>
<dt class="Symbol"><a class="Symbol" href="#get">get</a></dt>
<dd>
Get the value associated with the given key in the underlying context.</dd>
<dt class="Symbol"><a class="Symbol" href="#put">put</a></dt>
<dd>
Create or update a key/value entry in the underlying context.</dd>
<dt class="Symbol"><a class="Symbol" href="#remove">remove</a></dt>
<dd>
Remove the entry for the given key in the underlying context.</dd>
</dl>
<h2>Operations</h2>
<h3 class="Synopsis"><a class="Symbol" href="../Ice.html#Context">Context</a> <a class="Symbol" name="getContext">getContext</a>()</h3>
<p>
Get a copy of the underlying context.</p>
<h4>Return Value</h4>
<p>A copy of the underlying context.</p>
<h3 class="Synopsis">void <a class="Symbol" name="setContext">setContext</a>(<a class="Symbol" href="../Ice.html#Context">Context</a> newContext)</h3>
<p>
Set the underlying context.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">newContext</dt>
<dd>
The new context.</dd>
</dl>
<h3 class="Synopsis">bool <a class="Symbol" name="containsKey">containsKey</a>(string key)</h3>
<p>
Check if this key has an associated value in the underlying context.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">key</dt>
<dd>
The key.</dd>
</dl>
<h4>Return Value</h4>
<p>True if the key has an associated value, False otherwise.</p>
<h3 class="Synopsis">string <a class="Symbol" name="get">get</a>(string key)</h3>
<p>
Get the value associated with the given key in the underlying context.
Returns an empty string if no value is associated with the key.
<a class="Symbol" href="#containsKey">containsKey</a> allows you to distinguish between an empty-string value and
no value at all.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">key</dt>
<dd>
The key.</dd>
</dl>
<h4>Return Value</h4>
<p>The value associated with the key.</p>
<h3 class="Synopsis">string <a class="Symbol" name="put">put</a>(string key, string value)</h3>
<p>
Create or update a key/value entry in the underlying context.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">key</dt>
<dd>
The key.</dd>
<dt class="Symbol">value</dt>
<dd>
The value.</dd>
</dl>
<h4>Return Value</h4>
<p>The previous value associated with the key, if any.</p>
<h3 class="Synopsis">string <a class="Symbol" name="remove">remove</a>(string key)</h3>
<p>
Remove the entry for the given key in the underlying context.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">key</dt>
<dd>
The key.</dd>
</dl>
<h4>Return Value</h4>
<p>The value associated with the key, if any.</p>
<hr>
<!-- SwishCommand noindex -->
<table class="HeaderFooter">
<tr>
<td align="left">
<table>
<tr>
<td><a href="../index.html"><img class="Button" src="../images/home.gif" alt="Home"></a></td>
<td><a href="IllegalMessageSizeException.html"><img class="Button" src="../images/prev.gif" alt="Previous"></a></td>
<td><a href="../Ice.html"><img class="Button" src="../images/up.gif" alt="Up"></a></td>
<td><a href="InitializationException.html"><img class="Button" src="../images/next.gif" alt="Next"></a></td>
<td><a href="../_sindex.html"><img class="Button" src="../images/index.gif" alt="Index"></a></td>
</tr>
</table>
</td>
<td align="center">
<table>
<tr>
<td>
<form method="get" action="/cgi-bin/swish.cgi" enctype="application/x-www-form-urlencoded" class="form">
<div>
<input maxlength="100" value="" type="text" name="query">
<input type="submit" value="Search" name="submit"></div>
</form></td>
</tr>
</table>
</td>
<td align="right">
<table class="LogoTable">
<tr>
<td><a href="http://www.zeroc.com"><img class="Logo" src="../images/logo.gif" alt="Logo"></a></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- SwishCommand index -->
</div>
</body>
</html>
|