Top Fields Constructors Methods
org.eclipse.jetty.io

public abstract Class NegotiatingClientConnection

extends AbstractConnection
Class Inheritance
Imports
java.io.IOException, java.util.Map, java.util.concurrent.Executor, javax.net.ssl.SSLEngine, org.eclipse.jetty.util.BufferUtil, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private volatile boolean
private final ClientConnectionFactory
private final Map<String, Object>
private final SSLEngine
private static final Logger
private String

Constructor Summary

AccessConstructor and Description
protected
NegotiatingClientConnection(EndPoint endPoint, Executor executor, SSLEngine sslEngine, ClientConnectionFactory connectionFactory, Map<String, Object> context)

Method Summary

Modifier and TypeMethod and Description
public void
close()

Overrides org.eclipse.jetty.io.AbstractConnection.close.

Implements org.eclipse.jetty.io.Connection.close.

Performs a logical close of this connection.

protected void
completed(String protocol)

private int
fill()

public String
public SSLEngine
public void
onFillable()

Implements abstract org.eclipse.jetty.io.AbstractConnection.onFillable.

Callback method invoked when the endpoint is ready to be read.

public void
onOpen()

Overrides org.eclipse.jetty.io.AbstractConnection.onOpen.

Implements org.eclipse.jetty.io.Connection.onOpen.

Callback method invoked when this connection is opened.

private void
Inherited from org.eclipse.jetty.io.AbstractConnection:
addEventListenerfailedCallbackfillInterestedgetBytesIngetBytesOutgetCreatedTimeStampgetEndPointgetExecutorgetInputBufferSizegetInvocationTypegetMessagesIngetMessagesOutisFillInterestedonCloseonFillInterestedFailedonIdleExpiredonReadTimeoutremoveEventListenersetInputBufferSizetoConnectionStringtoStringtryFillInterested

Field Detail

completedback to summary
private volatile boolean completed
connectionFactoryback to summary
private final ClientConnectionFactory connectionFactory
contextback to summary
private final Map<String, Object> context
engineback to summary
private final SSLEngine engine
LOGback to summary
private static final Logger LOG

Hides org.eclipse.jetty.io.AbstractConnection.LOG.

protocolback to summary
private String protocol

Constructor Detail

NegotiatingClientConnectionback to summary
protected NegotiatingClientConnection(EndPoint endPoint, Executor executor, SSLEngine sslEngine, ClientConnectionFactory connectionFactory, Map<String, Object> context)

Method Detail

closeback to summary
public void close()

Overrides org.eclipse.jetty.io.AbstractConnection.close.

Implements org.eclipse.jetty.io.Connection.close.

Doc from org.eclipse.jetty.io.Connection.close.

Performs a logical close of this connection.

For simple connections, this may just mean to delegate the close to the associated EndPoint but, for example, SSL connections should write the SSL close message before closing the associated EndPoint.

Annotations
@Override
completedback to summary
protected void completed(String protocol)
fillback to summary
private int fill()
getProtocolback to summary
public String getProtocol()
getSSLEngineback to summary
public SSLEngine getSSLEngine()
onFillableback to summary
public void onFillable()

Implements abstract org.eclipse.jetty.io.AbstractConnection.onFillable.

Doc from org.eclipse.jetty.io.AbstractConnection.onFillable.

Callback method invoked when the endpoint is ready to be read.

Annotations
@Override
onOpenback to summary
public void onOpen()

Overrides org.eclipse.jetty.io.AbstractConnection.onOpen.

Implements org.eclipse.jetty.io.Connection.onOpen.

Doc from org.eclipse.jetty.io.Connection.onOpen.

Callback method invoked when this connection is opened.

Creators of the connection implementation are responsible for calling this method.

Annotations
@Override
replaceConnectionback to summary
private void replaceConnection()