comparison src/org/eclipse/jetty/io/nio/SslConnection.java @ 972:5ee36654b383

simplify AbstractHttpConnection
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 15 Oct 2016 22:42:05 -0600
parents 866f2e801618
children 4d9fe9cc554d
comparison
equal deleted inserted replaced
971:f997df37cec1 972:5ee36654b383
28 import javax.net.ssl.SSLSession; 28 import javax.net.ssl.SSLSession;
29 29
30 import org.eclipse.jetty.io.AbstractConnection; 30 import org.eclipse.jetty.io.AbstractConnection;
31 import org.eclipse.jetty.io.AsyncEndPoint; 31 import org.eclipse.jetty.io.AsyncEndPoint;
32 import org.eclipse.jetty.io.Buffer; 32 import org.eclipse.jetty.io.Buffer;
33 import org.eclipse.jetty.io.Connection;
34 import org.eclipse.jetty.io.EndPoint; 33 import org.eclipse.jetty.io.EndPoint;
35 import org.slf4j.Logger; 34 import org.slf4j.Logger;
36 import org.slf4j.LoggerFactory; 35 import org.slf4j.LoggerFactory;
37 36
38 37
759 public void setMaxIdleTime(int timeMs) throws IOException 758 public void setMaxIdleTime(int timeMs) throws IOException
760 { 759 {
761 _aEndp.setMaxIdleTime(timeMs); 760 _aEndp.setMaxIdleTime(timeMs);
762 } 761 }
763 762
764 public Connection getConnection() 763 public void setConnection(AsyncConnection connection)
765 { 764 {
766 return _connection; 765 _connection = connection;
767 }
768
769 public void setConnection(Connection connection)
770 {
771 _connection = (AsyncConnection)connection;
772 } 766 }
773 767
774 public String toString() 768 public String toString()
775 { 769 {
776 // Do NOT use synchronized (SslConnection.this) 770 // Do NOT use synchronized (SslConnection.this)