- All Known Implementing Classes:
Http2UpgradeCodecProvider
,WebsocketUpgradeCodecProvider
Deprecated.
Specific internal spi for Helidon 3.x, going to be changed for version 4
Service providing HTTP upgrade codec for Helidon webserver.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Name of the protocol expected inUpgrade
header during HTTP upgrade request for using decoder provided by this supplier.default Optional<ChannelHandler>
priorKnowledgeDecoder
(io.netty.handler.codec.http.HttpServerCodec sourceCodec, io.netty.handler.codec.http.HttpServerUpgradeHandler wrappedUpgradeHandler, int maxContentLength) Deprecated.Used as a wrapper for actual upgrade handler, if available.Deprecated.Name of the protocol expected by ALPN negotiation for using this protocol, prior-knowledge decoder is expected to be used.io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodec
upgradeCodec
(io.netty.handler.codec.http.HttpServerCodec sourceCodec, Router router, int maxContentLength) Deprecated.Codec used by theHttpServerUpgradeHandler
whenclearTextProtocol()
matches.
-
Method Details
-
clearTextProtocol
CharSequence clearTextProtocol()Deprecated.Name of the protocol expected inUpgrade
header during HTTP upgrade request for using decoder provided by this supplier.- Returns:
- protocol name
-
tlsProtocol
Deprecated.Name of the protocol expected by ALPN negotiation for using this protocol, prior-knowledge decoder is expected to be used.- Returns:
- name of the protocol supported by ALPN or empty optional
-
upgradeCodec
io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodec upgradeCodec(io.netty.handler.codec.http.HttpServerCodec sourceCodec, Router router, int maxContentLength) Deprecated.Codec used by theHttpServerUpgradeHandler
whenclearTextProtocol()
matches.- Parameters:
sourceCodec
- For replacing HttpResponseEncoder and HttpRequestDecoder when usingHttpServerUpgradeHandler
router
- set of all configured routingsmaxContentLength
- maximum length of the content of an upgrade request- Returns:
- upgrade codec
-
priorKnowledgeDecoder
default Optional<ChannelHandler> priorKnowledgeDecoder(io.netty.handler.codec.http.HttpServerCodec sourceCodec, io.netty.handler.codec.http.HttpServerUpgradeHandler wrappedUpgradeHandler, int maxContentLength) Deprecated.Used as a wrapper for actual upgrade handler, if available. Provides prior-knowledge capability in case other side decides to skip HTTP upgrade.- Parameters:
sourceCodec
- For replacing HttpResponseEncoder and HttpRequestDecoder when usingHttpServerUpgradeHandler
wrappedUpgradeHandler
- Actual upgrade handler used when prior-knowledge doesn't kick inmaxContentLength
- maximum length of the content of an upgrade request- Returns:
- prior-knowledge decoder or empty optional
-