io.netty5.handler.codec.http.HttpServerKeepAliveHandler with extra
handler management.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BiPredicate | |
| pack-priv ChannelHandlerContext | |
| pack-priv final HttpServerFormDecoderProvider | |
| pack-priv final BiFunction | |
| pack-priv static final HttpVersion | |
| pack-priv final HttpMessageLogFactory | |
| pack-priv final Duration | |
| pack-priv final ConnectionObserver | |
| pack-priv final BiFunction | |
| pack-priv final int | |
| pack-priv static final String | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv boolean | |
| pack-priv Queue | |
| pack-priv SocketAddress | |
| pack-priv Boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpTrafficHandler(BiPredicate<HttpServerRequest, HttpServerResponse> compress, HttpServerFormDecoderProvider formDecoderProvider, BiFunction<ConnectionInfo, HttpRequest, ConnectionInfo> forwardedHeaderHandler, HttpMessageLogFactory httpMessageLogFactory, Duration idleTimeout, ConnectionObserver listener, BiFunction<? super Mono<Void>, ? super Connection, ? extends Mono<Void>> mapHandle, int maxKeepAliveRequests)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | channelActive(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext is now active
|
| public void | channelRead(ChannelHandlerContext ctx, Object msg)
Overrides default io. Channel has read a message from the peer.
|
| public void | channelRegistered(ChannelHandlerContext ctx)
Overrides default io. Channel of the ChannelHandlerContext was registered with its EventLoop
|
| pack-priv final void | |
| pack-priv void | |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| public void | handlerRemoved(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was removed from the actual context and it doesn't handle events
anymore.
|
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static boolean | |
| pack-priv static boolean | Returns: true if the response has a self defined message length.The HttpResponse to check response)Keep-alive only works if the client can detect when the message has ended without relying on the connection being closed. |
| public void | operationComplete(Channel channel, Future<? extends Void>
the source future)Future which called this callbackImplements io. Future has been completed.
|
| pack-priv Future | |
| public void | |
| pack-priv void | |
| pack-priv boolean | |
| public Future | write(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg)Overrides default io. |
| compress | back to summary |
|---|---|
| pack-priv final BiPredicate<HttpServerRequest, HttpServerResponse> compress | |
| ctx | back to summary |
|---|---|
| pack-priv ChannelHandlerContext ctx | |
| formDecoderProvider | back to summary |
|---|---|
| pack-priv final HttpServerFormDecoderProvider formDecoderProvider | |
| forwardedHeaderHandler | back to summary |
|---|---|
| pack-priv final BiFunction<ConnectionInfo, HttpRequest, ConnectionInfo> forwardedHeaderHandler | |
| H2 | back to summary |
|---|---|
| pack-priv static final HttpVersion H2 | |
| httpMessageLogFactory | back to summary |
|---|---|
| pack-priv final HttpMessageLogFactory httpMessageLogFactory | |
| idleTimeout | back to summary |
|---|---|
| pack-priv final Duration idleTimeout | |
| listener | back to summary |
|---|---|
| pack-priv final ConnectionObserver listener | |
| mapHandle | back to summary |
|---|---|
| pack-priv final BiFunction<? super Mono<Void>, ? super Connection, ? extends Mono<Void>> mapHandle | |
| maxKeepAliveRequests | back to summary |
|---|---|
| pack-priv final int maxKeepAliveRequests | |
| MULTIPART_PREFIX | back to summary |
|---|---|
| pack-priv static final String MULTIPART_PREFIX | |
| nonInformationalResponse | back to summary |
|---|---|
| pack-priv boolean nonInformationalResponse | |
| overflow | back to summary |
|---|---|
| pack-priv boolean overflow | |
| pendingResponses | back to summary |
|---|---|
| pack-priv int pendingResponses | |
| persistentConnection | back to summary |
|---|---|
| pack-priv boolean persistentConnection | |
| pipelined | back to summary |
|---|---|
| pack-priv Queue<Object> pipelined | |
| remoteAddress | back to summary |
|---|---|
| pack-priv SocketAddress remoteAddress | |
| secure | back to summary |
|---|---|
| pack-priv Boolean secure | |
| HttpTrafficHandler | back to summary |
|---|---|
| pack-priv HttpTrafficHandler(BiPredicate<HttpServerRequest, HttpServerResponse> compress, HttpServerFormDecoderProvider formDecoderProvider, BiFunction<ConnectionInfo, HttpRequest, ConnectionInfo> forwardedHeaderHandler, HttpMessageLogFactory httpMessageLogFactory, Duration idleTimeout, ConnectionObserver listener, BiFunction<? super Mono<Void>, ? super Connection, ? extends Mono<Void>> mapHandle, int maxKeepAliveRequests) | |
| channelActive | back to summary |
|---|---|
| public void channelActive(ChannelHandlerContext ctx) Overrides default io. Doc from io. The
| |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) Overrides default io. Doc from io. Invoked when the current
| |
| channelRegistered | back to summary |
|---|---|
| public void channelRegistered(ChannelHandlerContext ctx) Overrides default io. Doc from io. The
| |
| discard | back to summary |
|---|---|
| pack-priv final void discard() | |
| doPipeline | back to summary |
|---|---|
| pack-priv void doPipeline(ChannelHandlerContext ctx, Object msg) | |
| handlerAdded | back to summary |
|---|---|
| public void handlerAdded(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) Overrides default io. Doc from io. Gets called after the
| |
| isInformational | back to summary |
|---|---|
| pack-priv static boolean isInformational(HttpResponse response) | |
| isMultipart | back to summary |
|---|---|
| pack-priv static boolean isMultipart(HttpResponse response) | |
| isNotModified | back to summary |
|---|---|
| pack-priv static boolean isNotModified(HttpResponse response) | |
| isSelfDefinedMessageLength | back to summary |
|---|---|
| pack-priv static boolean isSelfDefinedMessageLength(HttpResponse response) Keep-alive only works if the client can detect when the message has ended without relying on the connection being closed.
| |
| operationComplete | back to summary |
|---|---|
| public void operationComplete(Channel channel, Future<? extends Void> future) Implements io. Doc from io. Invoked when the operation associated with the | |
| responseAlreadySent | back to summary |
|---|---|
| pack-priv Future | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| sendDecodingFailures | back to summary |
|---|---|
| pack-priv void sendDecodingFailures(Throwable t, Object msg) | |
| shouldKeepAlive | back to summary |
|---|---|
| pack-priv boolean shouldKeepAlive() | |
| write | back to summary |
|---|---|
| public Future Overrides default io. Doc from io. Called once a write operation is made. The write operation will write the messages through the
| |