Package org.eclipse.jetty.server
Class NegotiatingServerConnection
- java.lang.Object
-
- org.eclipse.jetty.io.AbstractConnection
-
- org.eclipse.jetty.server.NegotiatingServerConnection
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,Connection
- Direct Known Subclasses:
ALPNServerConnection
public abstract class NegotiatingServerConnection extends AbstractConnection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
NegotiatingServerConnection.CipherDiscriminator
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NegotiatingServerConnection(Connector connector, EndPoint endPoint, javax.net.ssl.SSLEngine engine, java.util.List<java.lang.String> protocols, java.lang.String defaultProtocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Performs a logical close of this connection.Connector
getConnector()
java.lang.String
getDefaultProtocol()
java.lang.String
getProtocol()
java.util.List<java.lang.String>
getProtocols()
javax.net.ssl.SSLEngine
getSSLEngine()
void
onFillable()
Callback method invoked when the endpoint is ready to be read.void
onOpen()
Callback method invoked when this connection is opened.protected void
setProtocol(java.lang.String protocol)
-
Methods inherited from class org.eclipse.jetty.io.AbstractConnection
addListener, failedCallback, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, isFillInterested, onClose, onFillInterestedFailed, onIdleExpired, onReadTimeout, removeListener, setInputBufferSize, toConnectionString, toString, tryFillInterested, tryFillInterested
-
-
-
-
Method Detail
-
getProtocols
public java.util.List<java.lang.String> getProtocols()
-
getDefaultProtocol
public java.lang.String getDefaultProtocol()
-
getConnector
public Connector getConnector()
-
getSSLEngine
public javax.net.ssl.SSLEngine getSSLEngine()
-
getProtocol
public java.lang.String getProtocol()
-
setProtocol
protected void setProtocol(java.lang.String protocol)
-
onOpen
public void onOpen()
Description copied from interface:Connection
Callback method invoked when this connection is opened.
Creators of the connection implementation are responsible for calling this method.
- Specified by:
onOpen
in interfaceConnection
- Overrides:
onOpen
in classAbstractConnection
-
onFillable
public void onFillable()
Description copied from class:AbstractConnection
Callback method invoked when the endpoint is ready to be read.
- Specified by:
onFillable
in classAbstractConnection
- See Also:
AbstractConnection.fillInterested()
-
close
public void close()
Description copied from interface:Connection
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 associatedEndPoint
.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in interfaceConnection
- Overrides:
close
in classAbstractConnection
-
-