Package io.netty.handler.codec.http
Interface HttpServerUpgradeHandler.UpgradeCodecFactory
- Enclosing class:
HttpServerUpgradeHandler
public static interface HttpServerUpgradeHandler.UpgradeCodecFactory
Creates a new
HttpServerUpgradeHandler.UpgradeCodec
for the requested protocol name.-
Method Summary
Modifier and TypeMethodDescriptionnewUpgradeCodec
(CharSequence protocol) Invoked byHttpServerUpgradeHandler
for all the requested protocol names in the order of the client preference.
-
Method Details
-
newUpgradeCodec
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
-