Top Inners Fields Constructors Methods
org.eclipse.jetty.server

public abstract Class NegotiatingServerConnection

extends AbstractConnection
Class Inheritance
Imports
java.io.IOException, java.nio.ByteBuffer, java.util.List, javax.net.ssl.SSLEngine, .SSLEngineResult, org.eclipse.jetty.io.AbstractConnection, .Connection, .EndPoint, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Field Summary

Modifier and TypeField and Description
private final Connector
private final String
private static final ByteBuffer
private final SSLEngine
private static final Logger
private String
private final List<String>

Constructor Summary

AccessConstructor and Description
protected
NegotiatingServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol)

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.

private int
fill()

public Connector
public String
public String
public List<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.

protected void
setProtocol(String protocol)

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

Field Detail

connectorback to summary
private final Connector connector
defaultProtocolback to summary
private final String defaultProtocol
EMPTY_WRITABLE_BUFFERback to summary
private static final ByteBuffer EMPTY_WRITABLE_BUFFER
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
protocolsback to summary
private final List<String> protocols

Constructor Detail

NegotiatingServerConnectionback to summary
protected NegotiatingServerConnection(Connector connector, EndPoint endPoint, SSLEngine engine, List<String> protocols, String defaultProtocol)

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
fillback to summary
private int fill()
getConnectorback to summary
public Connector getConnector()
getDefaultProtocolback to summary
public String getDefaultProtocol()
getProtocolback to summary
public String getProtocol()
getProtocolsback to summary
public List<String> getProtocols()
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
setProtocolback to summary
protected void setProtocol(String protocol)
org.eclipse.jetty.server back to summary

public Interface NegotiatingServerConnection.CipherDiscriminator


Method Summary

Modifier and TypeMethod and Description
public boolean
isAcceptable(String protocol, String tlsProtocol, String tlsCipher)

Method Detail

isAcceptableback to summary
public boolean isAcceptable(String protocol, String tlsProtocol, String tlsCipher)