/usr/share/doc/ice34-slice/reference/Ice/ServantLocator.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 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | <!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::ServantLocator
</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="SecurityException.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="ServerNotFoundException.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::ServantLocator</h1>
<h2>Overview</h2>
<h3 class="Synopsis">local interface ServantLocator</h3>
<p>
A servant locator is called by an object adapter to
locate a servant that is not found in its active servant map.</p>
<h4>Derived Classes and Interfaces</h4>
<dl>
<dt class="Symbol"><a class="Symbol" href="../Freeze/Evictor.html#Evictor">::Freeze::Evictor</a></dt>
</dl>
<h4>Used By</h4>
<dl>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html#addServantLocator">ObjectAdapter::addServantLocator</a></dt>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html#findServantLocator">ObjectAdapter::findServantLocator</a></dt>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html#removeServantLocator">ObjectAdapter::removeServantLocator</a></dt>
</dl>
<h4>See Also</h4>
<dl>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html">ObjectAdapter</a></dt>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html#addServantLocator">ObjectAdapter::addServantLocator</a></dt>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html#findServantLocator">ObjectAdapter::findServantLocator</a></dt>
</dl>
<h2>Operation Index</h2>
<dl>
<dt class="Symbol"><a class="Symbol" href="#locate">locate</a></dt>
<dd>
Called before a request is dispatched if a
servant cannot be found in the object adapter's active servant
map.</dd>
<dt class="Symbol"><a class="Symbol" href="#finished">finished</a></dt>
<dd>
Called by the object adapter after a request has been
made.</dd>
<dt class="Symbol"><a class="Symbol" href="#deactivate">deactivate</a></dt>
<dd>
Called when the object adapter in which this servant locator is
installed is deactivated.</dd>
</dl>
<h2>Operations</h2>
<h3 class="Synopsis">Object <a class="Symbol" name="locate">locate</a>(<a class="Symbol" href="Current.html">Current</a> curr, out LocalObject cookie)</h3>
<p>
Called before a request is dispatched if a
servant cannot be found in the object adapter's active servant
map. Note that the object adapter does not automatically insert
the returned servant into its active servant map. This must be
done by the servant locator implementation, if this is desired.
<a class="Symbol" href="#locate">locate</a> can throw any user exception. If it does, that exception
is marshaled back to the client. If the Slice definition for the
corresponding operation includes that user exception, the client
receives that user exception; otherwise, the client receives
<a class="Symbol" href="UnknownUserException.html">UnknownUserException</a>.
If <a class="Symbol" href="#locate">locate</a> throws any exception, the Ice run time does <EM>not</EM>
call <a class="Symbol" href="#finished">finished</a>.
<p class="Note">If you call <a class="Symbol" href="#locate">locate</a> from your own code, you
must also call <a class="Symbol" href="#finished">finished</a> when you have finished using the
servant, provided that <a class="Symbol" href="#locate">locate</a> returned a non-null servant;
otherwise, you will get undefined behavior if you use
servant locators such as the <a class="Symbol" href="../Freeze/Evictor.html">::Freeze::Evictor</a>.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">curr</dt>
<dd>
Information about the current operation for which
a servant is required.</dd>
<dt class="Symbol">cookie</dt>
<dd>
A "cookie" that will be passed to <a class="Symbol" href="#finished">finished</a>.</dd>
</dl>
<h4>Return Value</h4>
<p>The located servant, or null if no suitable servant has
been found.</p>
<h4>See Also</h4>
<dl>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html">ObjectAdapter</a></dt>
<dt class="Symbol"><a class="Symbol" href="Current.html">Current</a></dt>
<dt class="Symbol"><a class="Symbol" href="#finished">finished</a></dt>
</dl>
<h3 class="Synopsis">void <a class="Symbol" name="finished">finished</a>(<a class="Symbol" href="Current.html">Current</a> curr, Object servant, LocalObject cookie)</h3>
<p>
Called by the object adapter after a request has been
made. This operation is only called if <a class="Symbol" href="#locate">locate</a> was called
prior to the request and returned a non-null servant. This
operation can be used for cleanup purposes after a request.
<a class="Symbol" href="#finished">finished</a> can throw any user exception. If it does, that exception
is marshaled back to the client. If the Slice definition for the
corresponding operation includes that user exception, the client
receives that user exception; otherwise, the client receives
<a class="Symbol" href="UnknownUserException.html">UnknownUserException</a>.
If both the operation and <a class="Symbol" href="#finished">finished</a> throw an exception, the
exception thrown by <a class="Symbol" href="#finished">finished</a> is marshaled back to the client.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">curr</dt>
<dd>
Information about the current operation call for
which a servant was located by <a class="Symbol" href="#locate">locate</a>.</dd>
<dt class="Symbol">servant</dt>
<dd>
The servant that was returned by <a class="Symbol" href="#locate">locate</a>.</dd>
<dt class="Symbol">cookie</dt>
<dd>
The cookie that was returned by <a class="Symbol" href="#locate">locate</a>.</dd>
</dl>
<h4>See Also</h4>
<dl>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html">ObjectAdapter</a></dt>
<dt class="Symbol"><a class="Symbol" href="Current.html">Current</a></dt>
<dt class="Symbol"><a class="Symbol" href="#locate">locate</a></dt>
</dl>
<h3 class="Synopsis">void <a class="Symbol" name="deactivate">deactivate</a>(string category)</h3>
<p>
Called when the object adapter in which this servant locator is
installed is deactivated.</p>
<h4>Parameters</h4>
<dl>
<dt class="Symbol">category</dt>
<dd>
Indicates for which category the servant locator
is being deactivated.</dd>
</dl>
<h4>See Also</h4>
<dl>
<dt class="Symbol"><a class="Symbol" href="ObjectAdapter.html#deactivate">ObjectAdapter::deactivate</a></dt>
<dt class="Symbol"><a class="Symbol" href="Communicator.html#shutdown">Communicator::shutdown</a></dt>
<dt class="Symbol"><a class="Symbol" href="Communicator.html#destroy">Communicator::destroy</a></dt>
</dl>
<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="SecurityException.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="ServerNotFoundException.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>
|