if (this.usessl) {
serversocketfactory = new SimpleSSLSocketFactory();
testhttp = new Protocol("https",
(ProtocolSocketFactory)new SimpleSSLTestProtocolSocketFactory(), 443);
} else {
serversocketfactory = new SimplePlainSocketFactory();
testhttp = Protocol.getProtocol("http");
}
this.httpserver = new SimpleHttpServer(serversocketfactory, 0);
this.httpclient.getHostConfiguration().setHost(
this.httpserver.getLocalAddress(),