Top Description Fields Constructors Methods
reactor.netty.http.server

pack-priv final Class NonSslRedirectHandler

extends ChannelInboundHandlerAdapter
Class Inheritance
Imports
io.netty.channel.ChannelFutureListener, .ChannelHandlerContext, .ChannelInboundHandlerAdapter, io.netty.handler.codec.http.DefaultFullHttpResponse, .HttpRequest, .HttpResponse, .HttpResponseStatus, javax.annotation.Nullable

The handler sends an HTTP response with a status code of 308 and a location header consisting of the host header of the request and HTTPS protocol to the incoming HTTP requests.

The handler is applicable only for HTTP/1.x and will not propagate for incoming HTTP requests

Author
James Chen
Since
1.0.5

Field Summary

Modifier and TypeField and Description
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
private String
Inherited from io.netty.channel.ChannelInboundHandlerAdapter:
channelActivechannelInactivechannelReadCompletechannelRegisteredchannelUnregisteredchannelWritabilityChangedexceptionCaughtuserEventTriggered

Field Detail

HTTP_PROTOCOLback to summary
private static final String HTTP_PROTOCOL
HTTPS_PROTOCOLback to summary
private static final String HTTPS_PROTOCOL

Constructor Detail

NonSslRedirectHandlerback to summary
pack-priv NonSslRedirectHandler()

Method Detail

channelReadback to summary
public void channelRead(ChannelHandlerContext ctx, Object msg)

Overrides io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Implements io.netty.channel.ChannelInboundHandler.channelRead.

Doc from io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Calls ChannelHandlerContext#fireChannelRead(Object) to forward to the next ChannelInboundHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Annotations
@SuppressWarnings:FutureReturnValueIgnored
@Override
getRequestedUrlInHttpsback to summary
private String getRequestedUrlInHttps(HttpRequest request)
Annotations
@Nullable