jetty-9 - Cleanup.

This commit is contained in:
Simone Bordet 2012-09-20 18:44:12 +02:00
parent 6de7398d48
commit ebdab22a63
1 changed files with 1 additions and 5 deletions

View File

@ -29,7 +29,6 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
@ -54,13 +53,10 @@ public class SSLCloseTest
ServerConnector connector=new ServerConnector(server, sslContextFactory);
connector.setPort(0);
server.setConnectors(new Connector[]
{connector});
server.addConnector(connector);
server.setHandler(new WriteHandler());
server.start();
SSLContext ctx=SSLContext.getInstance("SSLv3");
ctx.init(null,SslContextFactory.TRUST_ALL_CERTS,new java.security.SecureRandom());