Package org.eclipse.jetty.io
Interface Connection.UpgradeFrom
-
- All Superinterfaces:
AutoCloseable,Closeable,Connection
- Enclosing interface:
- Connection
public static interface Connection.UpgradeFrom extends Connection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Connection
Connection.Listener, Connection.UpgradeFrom, Connection.UpgradeTo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBufferonUpgradeFrom()Takes the input buffer from the connection on upgrade.-
Methods inherited from interface org.eclipse.jetty.io.Connection
addListener, close, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getMessagesIn, getMessagesOut, onClose, onIdleExpired, onOpen, removeListener
-
-
-
-
Method Detail
-
onUpgradeFrom
ByteBuffer onUpgradeFrom()
Takes the input buffer from the connection on upgrade.
This method is used to take any unconsumed input from a connection during an upgrade.
- Returns:
- A buffer of unconsumed input. The caller must return the buffer to the bufferpool when consumed and this connection must not.
-
-