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 byHttpServerUpgradeHandlerfor all the requested protocol names in the order of the client preference.
-
Method Details
-
newUpgradeCodec
Invoked byHttpServerUpgradeHandlerfor all the requested protocol names in the order of the client preference. The first non-nullHttpServerUpgradeHandler.UpgradeCodecreturned by this method will be selected.- Returns:
- a new
HttpServerUpgradeHandler.UpgradeCodec, ornullif the specified protocol name is not supported
-