io.netty.handler.codec.http.HttpServerKeepAliveHandler with extra
handler management.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BiPredicate | |
| pack-priv final ServerCookieDecoder | |
| pack-priv final ServerCookieEncoder | |
| 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 final Duration | |
| pack-priv SocketAddress | |
| pack-priv final Duration | |
| pack-priv Boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpTrafficHandler(BiPredicate<HttpServerRequest, HttpServerResponse> compress, ServerCookieDecoder decoder, ServerCookieEncoder encoder, 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, Duration readTimeout, Duration requestTimeout)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | channelActive(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandlerContext#fireChannelActive() to forward
to the next ChannelInboundHandler in the ChannelPipeline.
|
| public void | channelRead(ChannelHandlerContext ctx, Object msg)
Overrides io. Implements io. ChannelHandlerContext#fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline.
|
| pack-priv final void | |
| pack-priv void | |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides io. Implements io. ChannelHandler was added to the actual context and it's ready to handle events.
|
| public void | handlerRemoved(ChannelHandlerContext ctx)
Overrides io. Implements 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 | |
| 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(ChannelFuture
the source future)Future which called this callbackImplements io. Future has been completed.
|
| public void | |
| pack-priv void | |
| pack-priv void | sendDecodingFailures(Throwable t, Object msg, ZonedDateTime timestamp, ConnectionInfo connectionInfo)
|
| pack-priv boolean | |
| public void | write(ChannelHandlerContext
the ctx, Object ChannelHandlerContext for which the write operation is madethe message to write msg, ChannelPromise the promise)ChannelPromise to notify once the operation completesOverrides io. Implements io. ChannelHandlerContext#write(Object, ChannelPromise) to forward
to the next ChannelOutboundHandler in the ChannelPipeline.
|
| compress | back to summary |
|---|---|
| pack-priv final BiPredicate<HttpServerRequest, HttpServerResponse> compress | |
| cookieDecoder | back to summary |
|---|---|
| pack-priv final ServerCookieDecoder cookieDecoder | |
| cookieEncoder | back to summary |
|---|---|
| pack-priv final ServerCookieEncoder cookieEncoder | |
| 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 | |
| readTimeout | back to summary |
|---|---|
| pack-priv final Duration readTimeout | |
| remoteAddress | back to summary |
|---|---|
| pack-priv SocketAddress remoteAddress | |
| requestTimeout | back to summary |
|---|---|
| pack-priv final Duration requestTimeout | |
| secure | back to summary |
|---|---|
| pack-priv Boolean secure | |
| HttpTrafficHandler | back to summary |
|---|---|
| pack-priv HttpTrafficHandler(BiPredicate<HttpServerRequest, HttpServerResponse> compress, ServerCookieDecoder decoder, ServerCookieEncoder encoder, 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, Duration readTimeout, Duration requestTimeout) | |
| channelActive | back to summary |
|---|---|
| public void channelActive(ChannelHandlerContext ctx) Overrides io. Implements io. Doc from io. Calls
| |
| channelRead | back to summary |
|---|---|
| public void channelRead(ChannelHandlerContext ctx, Object msg) Overrides io. Implements io. Doc from io. Calls
| |
| 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 io. Implements io. Doc from io. Gets called after the
| |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) Overrides io. Implements 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) | |
| isNoContent | back to summary |
|---|---|
| pack-priv static boolean isNoContent(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(ChannelFuture future) Implements io. Doc from io. Invoked when the operation associated with the
| |
| 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) | |
| sendDecodingFailures | back to summary |
|---|---|
| pack-priv void sendDecodingFailures(Throwable t, Object msg, ZonedDateTime timestamp, ConnectionInfo connectionInfo) | |
| shouldKeepAlive | back to summary |
|---|---|
| pack-priv boolean shouldKeepAlive() | |
| write | back to summary |
|---|---|
| public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) Overrides io. Implements io. Doc from io. Calls
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final HttpRequest | |
| pack-priv final ZonedDateTime |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| request | back to summary |
|---|---|
| pack-priv final HttpRequest request | |
| timestamp | back to summary |
|---|---|
| pack-priv final ZonedDateTime timestamp | |
| HttpRequestHolder | back to summary |
|---|---|
| pack-priv HttpRequestHolder(HttpRequest request) | |