Documentation cleanup

This commit is contained in:
Trustin Lee 2009-07-14 10:38:59 +00:00
parent 5fa73d2af5
commit 28c64f1477

View File

@ -102,14 +102,15 @@
* *
* <pre> * <pre>
* ClientBootstrap b = new ClientBootstrap( * ClientBootstrap b = new ClientBootstrap(
* <b>new HttpTunnelingClientSocketChannelFactory(new NioClientSocketChannelFactory(...))</b>); * <b>new HttpTunnelingClientSocketChannelFactory(
* new NioClientSocketChannelFactory(...))</b>);
* *
* // Configure the pipeline (or pipeline factory) here. * // Configure the pipeline (or pipeline factory) here.
* ... * ...
* *
* // The host name of the HTTP server. * // The host name of the HTTP server
* b.setOption(<b>"serverName"</b>, "example.com"); * b.setOption(<b>"serverName"</b>, "example.com");
* // The path to the HTTP tunneling Servlet (set to <b>/netty-tunnel</b> in web.xml) * // The path to the HTTP tunneling Servlet, which was specified in in web.xml
* b.setOption(<b>"serverPath"</b>, "contextPath<b>/netty-tunnel</b>"); * b.setOption(<b>"serverPath"</b>, "contextPath<b>/netty-tunnel</b>");
* b.connect(new InetSocketAddress("example.com", 80); * b.connect(new InetSocketAddress("example.com", 80);
* </pre> * </pre>