Module io.netty5.codec.http
Package io.netty5.handler.codec.http
Interface HttpServerUpgradeHandler.UpgradeCodecFactory
-
- Enclosing class:
- HttpServerUpgradeHandler<C extends HttpContent<C>>
public static interface HttpServerUpgradeHandler.UpgradeCodecFactory
Creates a newHttpServerUpgradeHandler.UpgradeCodec
for the requested protocol name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpServerUpgradeHandler.UpgradeCodec
newUpgradeCodec(CharSequence protocol)
Invoked byHttpServerUpgradeHandler
for all the requested protocol names in the order of the client preference.
-
-
-
Method Detail
-
newUpgradeCodec
HttpServerUpgradeHandler.UpgradeCodec newUpgradeCodec(CharSequence protocol)
Invoked byHttpServerUpgradeHandler
for all the requested protocol names in the order of the client preference. The first non-null
HttpServerUpgradeHandler.UpgradeCodec
returned by this method will be selected.- Returns:
- a new
HttpServerUpgradeHandler.UpgradeCodec
, ornull
if the specified protocol name is not supported
-
-