Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ba4e4dd7d8dab4a67407dfe1374e9686 > files > 16

ocaml-xmlrpc-light-devel-0.6.1-6.fc15.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="next" href="XmlRpcServer.cgi.html">
<link rel="Up" href="XmlRpcServer.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="XmlRpc" rel="Chapter" href="XmlRpc.html">
<link title="XmlRpcServer" rel="Chapter" href="XmlRpcServer.html">
<link title="XmlRpcDateTime" rel="Chapter" href="XmlRpcDateTime.html">
<link title="XmlRpcBase64" rel="Chapter" href="XmlRpcBase64.html"><title>XmlRpcServer.base</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="XmlRpcServer.html">Up</a>
&nbsp;<a href="XmlRpcServer.cgi.html">Next</a>
</div>
<center><h1>Class virtual <a href="type_XmlRpcServer.base.html">XmlRpcServer.base</a></h1></center>
<br>
<pre><span class="keyword">class</span> <a name="TYPEbase"></a><span class="keyword">virtual</span> base : <code class="type"></code><code class="code">object</code> <a href="XmlRpcServer.base.html">..</a> <code class="code">end</code></pre>Abstract base class for XmlRpc servers.<br>
<hr width="100%">
<pre><span class="keyword">val</span> <a name="ATTmethods"></a>methods : <code class="type">(string, <a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a> list -> <a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a>) Hashtbl.t</code></pre><div class="info">
Hashtable mapping method names to implementation functions.<br>
</div>
<pre><span class="keyword">val</span> <a name="ATTbase64_encoder"></a><span class="keyword">mutable</span> base64_encoder : <code class="type">string -> string</code></pre><div class="info">
Base-64 binary encoding function.<br>
</div>
<pre><span class="keyword">val</span> <a name="ATTbase64_decoder"></a><span class="keyword">mutable</span> base64_decoder : <code class="type">string -> string</code></pre><div class="info">
Base-64 binary decoding function.<br>
</div>
<pre><span class="keyword">val</span> <a name="ATTdatetime_encoder"></a><span class="keyword">mutable</span> datetime_encoder : <code class="type"><a href="XmlRpcDateTime.html#TYPEt">XmlRpcDateTime.t</a> -> string</code></pre><div class="info">
ISO-8601 date/time encoding function.<br>
</div>
<pre><span class="keyword">val</span> <a name="ATTdatetime_decoder"></a><span class="keyword">mutable</span> datetime_decoder : <code class="type">string -> <a href="XmlRpcDateTime.html#TYPEt">XmlRpcDateTime.t</a></code></pre><div class="info">
ISO-8601 date/time decoding function.<br>
</div>
<pre><span class="keyword">val</span> <a name="ATTerror_handler"></a><span class="keyword">mutable</span> error_handler : <code class="type">exn -> <a href="XmlRpc.html#TYPEmessage">XmlRpc.message</a></code></pre><div class="info">
Handler for unhandled exceptions.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODset_base64_encoder"></a>set_base64_encoder : <code class="type">(string -> string) -> unit</code></pre><div class="info">
Sets an alternate Base-64 binary encoding function.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODset_base64_decoder"></a>set_base64_decoder : <code class="type">(string -> string) -> unit</code></pre><div class="info">
Sets an alternate Base-64 binary decoding function.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODset_datetime_encoder"></a>set_datetime_encoder : <code class="type">(<a href="XmlRpcDateTime.html#TYPEt">XmlRpcDateTime.t</a> -> string) -> unit</code></pre><div class="info">
Sets an alternate ISO-8601 date/time encoding function.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODset_datetime_decoder"></a>set_datetime_decoder : <code class="type">(string -> <a href="XmlRpcDateTime.html#TYPEt">XmlRpcDateTime.t</a>) -> unit</code></pre><div class="info">
Sets an alternate ISO-8601 date/time decoding function.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODset_error_handler"></a>set_error_handler : <code class="type">(exn -> <a href="XmlRpc.html#TYPEmessage">XmlRpc.message</a>) -> unit</code></pre><div class="info">
Sets an alternate handler for unhandled exceptions.
      See <a href="XmlRpc.html#VALdefault_error_handler"><code class="code">XmlRpc.default_error_handler</code></a> and
      <a href="XmlRpc.html#VALquiet_error_handler"><code class="code">XmlRpc.quiet_error_handler</code></a> for examples.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODserve"></a>serve : <code class="type">(string -> <a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a> list -> <a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a>) -> string -> string</code></pre><div class="info">
For use in subclasses; calls <a href="XmlRpc.html#VALserve"><code class="code">XmlRpc.serve</code></a> with the current
      encoders, decoders, and error handler.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODserve_message"></a>serve_message : <code class="type">(string -> <a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a> list -> <a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a>) -><br>       <a href="XmlRpc.html#TYPEmessage">XmlRpc.message</a> -> <a href="XmlRpc.html#TYPEmessage">XmlRpc.message</a></code></pre><div class="info">
Like <code class="code">serve</code>, but operates on messages instead of strings.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODregister"></a>register : <code class="type">string -><br>       ?help:string -><br>       ?signature:<a href="XmlRpcServer.html#TYPEparam_type">param_type</a> list -><br>       ?signatures:<a href="XmlRpcServer.html#TYPEparam_type">param_type</a> list list -><br>       (<a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a> list -> <a href="XmlRpc.html#TYPEvalue">XmlRpc.value</a>) -> unit</code></pre><div class="info">
Registers a method with the server.
<p>

      If a <code class="code">help</code> string is specified, its contents will be returned for
      calls to <code class="code">system.methodHelp</code> for this method.
<p>

      If <code class="code">signature</code> is specified, this method's signature will be published
      by <code class="code">system.methodSignature</code> and (shallow) type-checking will be enabled
      for parameters passed into this method.
<p>

      Multiple signatures can be supplied via <code class="code">signatures</code> if desired to
      provide for overloaded methods.
<p>

      Signatures are of the form <code class="code">return-type; param1-type; param2-type; ...</code>
      where each type is an instance of the <a href="XmlRpcServer.html#TYPEparam_type"><code class="code">XmlRpcServer.param_type</code></a> variant.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODunregister"></a>unregister : <code class="type">string -> unit</code></pre><div class="info">
Removes a method from the server.<br>
</div>
<pre><span class="keyword">method</span> <a name="METHODrun"></a><span class="keyword">virtual</span> run : <code class="type">unit -> unit</code></pre><div class="info">
Starts the main server process.<br>
</div>
</body></html>