Package org.eclipse.jetty.io
Interface Connection.UpgradeTo
-
- Enclosing interface:
- Connection
public static interface Connection.UpgradeTo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonUpgradeTo(ByteBuffer prefilled)Callback method invoked when this connection is upgraded.
-
-
-
Method Detail
-
onUpgradeTo
void onUpgradeTo(ByteBuffer prefilled)
Callback method invoked when this connection is upgraded.
This must be called before
Connection.onOpen().- Parameters:
prefilled- An optional buffer that can contain prefilled data. Typically this results from an upgrade of one protocol to the other where the old connection has buffered data destined for the new connection. The new connection must take ownership of the buffer and is responsible for returning it to the buffer pool
-
-