public class ProxyHandlerImpl extends Object implements ProxyHandler
ProxyHandler.ProxyResponseResult| Constructor and Description |
|---|
ProxyHandlerImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
createProxyRequest(String hostName,
Map<String,String> additionalHeaders)
Creates a CONNECT request to the provided
hostName and adds additionalHeaders to the request. |
ProxyHandler.ProxyResponseResult |
validateProxyResponse(ByteBuffer buffer)
Verifies that
buffer contains a successful CONNECT response. |
public String createProxyRequest(String hostName, Map<String,String> additionalHeaders)
hostName and adds additionalHeaders to the request.createProxyRequest in interface ProxyHandlerhostName - Name of the host to connect to.additionalHeaders - Optional. Additional headers to add to the request.public ProxyHandler.ProxyResponseResult validateProxyResponse(ByteBuffer buffer)
buffer contains a successful CONNECT response.validateProxyResponse in interface ProxyHandlerbuffer - Buffer containing the HTTP response.Copyright © 2020. All rights reserved.