comparison src/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java @ 1018:4dc1e1a18661

remove HttpSchemes
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 24 Oct 2016 05:37:24 -0600
parents 4e7208df7741
children a8c92b0a08ed
comparison
equal deleted inserted replaced
1017:d2c3ff33387c 1018:4dc1e1a18661
24 import javax.net.ssl.SSLContext; 24 import javax.net.ssl.SSLContext;
25 import javax.net.ssl.SSLEngine; 25 import javax.net.ssl.SSLEngine;
26 import javax.net.ssl.SSLSession; 26 import javax.net.ssl.SSLSession;
27 import javax.net.ssl.SSLSocket; 27 import javax.net.ssl.SSLSocket;
28 28
29 import org.eclipse.jetty.http.HttpSchemes;
30 import org.eclipse.jetty.io.AsyncEndPoint; 29 import org.eclipse.jetty.io.AsyncEndPoint;
31 import org.eclipse.jetty.io.Buffer; 30 import org.eclipse.jetty.io.Buffer;
32 import org.eclipse.jetty.io.Buffers; 31 import org.eclipse.jetty.io.Buffers;
33 import org.eclipse.jetty.io.EndPoint; 32 import org.eclipse.jetty.io.EndPoint;
34 import org.eclipse.jetty.io.RuntimeIOException; 33 import org.eclipse.jetty.io.RuntimeIOException;
107 * HttpRequest to be customised. 106 * HttpRequest to be customised.
108 */ 107 */
109 @Override 108 @Override
110 public void customize(AbstractHttpConnection con) throws IOException 109 public void customize(AbstractHttpConnection con) throws IOException
111 { 110 {
112 con._request.setScheme(HttpSchemes.HTTPS); 111 con._request.setScheme("https");
113 super.customize(con); 112 super.customize(con);
114 113
115 SslConnection.SslEndPoint sslEndpoint=(SslConnection.SslEndPoint)con._endp; 114 SslConnection.SslEndPoint sslEndpoint=(SslConnection.SslEndPoint)con._endp;
116 SSLEngine sslEngine = sslEndpoint.getSslEngine(); 115 SSLEngine sslEngine = sslEndpoint.getSslEngine();
117 SSLSession sslSession = sslEngine.getSession(); 116 SSLSession sslSession = sslEngine.getSession();