- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.io.NegotiatingClientConnection
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,Connection
public abstract class NegotiatingClientConnection extends AbstractConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNegotiatingClientConnection(EndPoint endPoint, java.util.concurrent.Executor executor, javax.net.ssl.SSLEngine sslEngine, ClientConnectionFactory connectionFactory, java.util.Map<java.lang.String,java.lang.Object> context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Performs a logical close of this connection.protected voidcompleted(java.lang.String protocol)java.lang.StringgetProtocol()javax.net.ssl.SSLEnginegetSSLEngine()voidonFillable()Callback method invoked when the endpoint is ready to be read.voidonOpen()Callback method invoked when this connection is opened.-
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addEventListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeEventListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterested
-
-
-
-
Constructor Detail
-
NegotiatingClientConnection
protected NegotiatingClientConnection(EndPoint endPoint, java.util.concurrent.Executor executor, javax.net.ssl.SSLEngine sslEngine, ClientConnectionFactory connectionFactory, java.util.Map<java.lang.String,java.lang.Object> context)
-
-
Method Detail
-
getSSLEngine
public javax.net.ssl.SSLEngine getSSLEngine()
-
getProtocol
public java.lang.String getProtocol()
-
completed
protected void completed(java.lang.String protocol)
-
onOpen
public void onOpen()
Description copied from interface:ConnectionCallback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpenin interfaceConnection- Overrides:
onOpenin classAbstractConnection
-
onFillable
public void onFillable()
Description copied from class:AbstractConnectionCallback method invoked when the endpoint is ready to be read.
- Specified by:
onFillablein classAbstractConnection- See Also:
AbstractConnection.fillInterested()
-
close
public void close()
Description copied from interface:ConnectionPerforms a logical close of this connection.
For simple connections, this may just mean to delegate the close to the associated
EndPointbut, for example, SSL connections should write the SSL close message before closing the associatedEndPoint.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceConnection- Overrides:
closein classAbstractConnection
-
-