public static interface HttpServerUpgradeHandler.UpgradeCodecFactory
HttpServerUpgradeHandler.UpgradeCodec
for the requested protocol name.限定符和类型 | 方法和说明 |
---|---|
HttpServerUpgradeHandler.UpgradeCodec |
newUpgradeCodec(java.lang.CharSequence protocol)
Invoked by
HttpServerUpgradeHandler for all the requested protocol names in the order of
the client preference. |
HttpServerUpgradeHandler.UpgradeCodec newUpgradeCodec(java.lang.CharSequence protocol)
HttpServerUpgradeHandler
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.HttpServerUpgradeHandler.UpgradeCodec
, or null
if the specified protocol name is not supported