return PageCompletion.PAGE_DONE;
}
private void addStatus (StringBuilder sb) {
HttpProxy proxy = con.getProxy ();
ConnectionHandler ch = proxy.getConnectionHandler ();
sb.append ("<br>\n");
sb.append ("Keepalive is set to: ");
sb.append (ch.getKeepaliveTime () / 1000);
sb.append (" s.<br>\n");
sb.append (HtmlPage.getTableHeader (100, 1));
sb.append (HtmlPage.getTableTopicRow ());
sb.append ("<P><H1>keepalive connections</H1></P>\n");
sb.append ("<th width=\"30%\">InetAddress</th>");
sb.append ("<th width=\"20%\">Port</th>");
sb.append ("<th width=\"50%\">#Connection</th>\n");
Map<Address, List<WebConnection>> m = ch.getActiveConnections ();
for (Map.Entry<Address, List<WebConnection>> me : m.entrySet ()) {
Address a = me.getKey ();
List<WebConnection> ls = me.getValue ();
sb.append ("<tr><td>").append (a.getInetAddress ());
sb.append ("</td><td>").append (a.getPort ());