public class NPNServerConnection extends AbstractConnection implements org.eclipse.jetty.npn.NextProtoNego.ServerProvider
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.State
Connection.Listener
EXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING
Constructor and Description |
---|
NPNServerConnection(EndPoint endPoint,
SSLEngine engine,
Connector connector,
List<String> protocols,
String defaultProtocol) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Performs a logical close of this connection.
|
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onOpen()
Callback method invoked when this
Connection is opened. |
List<String> |
protocols() |
void |
protocolSelected(String protocol) |
void |
unsupported() |
addListener, fillInterested, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, next, onClose, onFillInterestedFailed, onReadTimeout, setInputBufferSize, toString
public void onOpen()
Connection
Callback method invoked when this Connection
is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen
in interface Connection
onOpen
in class AbstractConnection
public void onFillable()
AbstractConnection
Callback method invoked when the endpoint is ready to be read.
onFillable
in class AbstractConnection
AbstractConnection.fillInterested()
public void unsupported()
unsupported
in interface org.eclipse.jetty.npn.NextProtoNego.ServerProvider
public List<String> protocols()
protocols
in interface org.eclipse.jetty.npn.NextProtoNego.ServerProvider
public void protocolSelected(String protocol)
protocolSelected
in interface org.eclipse.jetty.npn.NextProtoNego.ServerProvider
public void close()
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 associated EndPoint
.
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Connection
close
in class AbstractConnection
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.