Top Inners Fields Constructors Methods
io.netty.contrib.handler.proxy

public final Class HttpProxyHandler

extends ProxyHandler
Class Inheritance
Imports
io.netty5.channel.ChannelHandler, .ChannelHandlerContext, .ChannelPipeline, .ChannelShutdownDirection, .ReadBufferAllocator, io.netty5.handler.codec.http.DefaultFullHttpRequest, .FullHttpRequest, .HttpClientCodec, .HttpHeaderNames, .HttpMethod, .HttpResponse, .HttpResponseStatus, .HttpUtil, .HttpVersion, .LastHttpContent, io.netty5.handler.codec.http.headers.HttpHeaders, io.netty5.util.AsciiString, io.netty5.util.concurrent.Future, java.net.InetSocketAddress, .SocketAddress, java.nio.charset.StandardCharsets, java.util.Arrays, .Base64

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class
HttpProxyHandler.HttpProxyConnectException

Specific case of a connection failure, which may include headers from the proxy.

Field Summary

Modifier and TypeField and Description
private static final String
private final CharSequence
private static final byte[]
private final HttpProxyHandler.HttpClientCodecWrapper
private final boolean
private HttpHeaders
private final HttpHeaders
private final String
private static final String
private HttpResponseStatus
private final String
Inherited from io.netty.contrib.handler.proxy.ProxyHandler:
AUTH_NONE

Constructor Summary

AccessConstructor and Description
public
public
public
HttpProxyHandler(SocketAddress proxyAddress, HttpHeaders headers, boolean ignoreDefaultPortsInConnectHostHeader)

public
HttpProxyHandler(SocketAddress proxyAddress, String username, String password)

public
HttpProxyHandler(SocketAddress proxyAddress, String username, String password, HttpHeaders headers)

public
HttpProxyHandler(SocketAddress proxyAddress, String username, String password, HttpHeaders headers, boolean ignoreDefaultPortsInConnectHostHeader)

Method Summary

Modifier and TypeMethod and Description
protected void
addCodec(ChannelHandlerContext ctx)

Implements abstract io.netty.contrib.handler.proxy.ProxyHandler.addCodec.

Adds the codec handlers required to communicate with the proxy server.
public String
authScheme()

Implements abstract io.netty.contrib.handler.proxy.ProxyHandler.authScheme.

Returns the name of the authentication scheme in use.
protected boolean
handleResponse(ChannelHandlerContext ctx, Object response)

Implements abstract io.netty.contrib.handler.proxy.ProxyHandler.handleResponse.

Handles the message received from the proxy server.
protected Object
newInitialMessage(ChannelHandlerContext ctx)

Implements abstract io.netty.contrib.handler.proxy.ProxyHandler.newInitialMessage.

Returns a new message that is sent at first time when the connection to the proxy server has been established.
public String
public String
protocol()

Implements abstract io.netty.contrib.handler.proxy.ProxyHandler.protocol.

Returns the name of the proxy protocol in use.
protected void
protected void
public String
Inherited from io.netty.contrib.handler.proxy.ProxyHandler:
channelActivechannelExceptionCaughtchannelInactivechannelReadchannelReadCompleteconnectconnectFutureconnectTimeoutMillisdestinationAddressexceptionMessageflushhandlerAddedisConnectedproxyAddresssendToProxyServersetConnectTimeoutMilliswrite