public final class ProxyHandler extends Object implements HttpHandler
| Constructor and Description |
|---|
ProxyHandler(ProxyClient proxyClient) |
ProxyHandler(ProxyClient proxyClient,
int maxRequestTime) |
| Modifier and Type | Method and Description |
|---|---|
ProxyHandler |
addRequestHeader(HttpString header,
ExchangeAttribute attribute)
Adds a request header to the outgoing request.
|
ProxyHandler |
addRequestHeader(HttpString header,
String attribute,
ClassLoader classLoader)
Adds a request header to the outgoing request.
|
ProxyClient |
getProxyClient() |
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
ProxyHandler |
removeRequestHeader(HttpString header)
Removes a request header
|
public static final String UTF_8
public ProxyHandler(ProxyClient proxyClient, int maxRequestTime)
public ProxyHandler(ProxyClient proxyClient)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionpublic ProxyHandler addRequestHeader(HttpString header, ExchangeAttribute attribute)
header - The header nameattribute - The header value attribute.public ProxyHandler addRequestHeader(HttpString header, String attribute, ClassLoader classLoader)
header - The header nameattribute - The header value attribute.public ProxyHandler removeRequestHeader(HttpString header)
header - the headerpublic ProxyClient getProxyClient()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.