Author: jochen Date: Sun Jun 25 13:03:52 2006 New Revision: 417048 URL: http://svn.apache.org/viewvc?rev=417048&view=rev Log: Manual fixes of HTML bugs
Modified: webservices/xmlrpc/site/faq.html Modified: webservices/xmlrpc/site/faq.html URL: http://svn.apache.org/viewvc/webservices/xmlrpc/site/faq.html?rev=417048&r1=417047&r2=417048&view=diff ============================================================================== --- webservices/xmlrpc/site/faq.html (original) +++ webservices/xmlrpc/site/faq.html Sun Jun 25 13:03:52 2006 @@ -208,7 +208,7 @@ <table border="0"><tr><td align="right"><a href="#top">[top]</a></td></tr></table><hr /></dd><dt><a name="timeout_callback">Is it possible to specify a timeout, after which the client stops waiting for the servers response?</a></dt><dd> <p>Yes, use the class TimingOutCallback.</p> - <div class="source"><pre><![CDATA[ + <div class="source"><pre> // Wait for 10 seconds. TimingOutCallback callback = new TimingOutCallback(10 * 1000); XmlRpcClient client = new XmlRpcClient(url); @@ -220,7 +220,7 @@ } catch (Exception e) { System.out.println("Server returned an error message."); } - ]]></pre></div> + </pre></div> <table border="0"><tr><td align="right"><a href="#top">[top]</a></td></tr></table></dd></dl><dl><dt><a name="streaming_mode">How do I enable streaming mode?</a></dt><dd> <p>Set the property "enabledForExtensions". Note, that enabling the streaming mode doesn't mean, that all responses are served @@ -264,7 +264,7 @@ <p>The recommended solution is to create a subclass of the XmlRpcServlet, which in turn uses a subclass of the PropertyHandlerMapping:</p> - <div class="source"><pre><![CDATA[ + <div class="source"><pre> public interface InitializableHandler { void init(HttpServlet pServlet) throws XmlRpcException; } @@ -282,7 +282,7 @@ } } - ]]></pre></div> + </pre></div> <table border="0"><tr><td align="right"><a href="#top">[top]</a></td></tr></table><hr /></dd><dt><a name="client_ip">How to I get the clients IP address in a handler?</a></dt><dd> <p>That's a similar question than the question on initializing handlers. The main difference is, that in this case you want to initialize the @@ -291,7 +291,7 @@ RequestInitializableHandler. This interface has an init method, which is being called to receive an object with the clients IP address:</p> - <div class="source"><pre><![CDATA[ + <div class="source"><pre> public class MyConfig extends XmlRpcHttpRequestConfigImpl { private String clientIpAddress; public String getClientIpAddress() { @@ -328,7 +328,7 @@ return result; } } - ]]></pre></div> + </pre></div> <table border="0"><tr><td align="right"><a href="#top">[top]</a></td></tr></table></dd></dl> </div> </div> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]