SimpleSocketFactory serversocketfactory = null;
Protocol testhttp = null;
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);