public class SimpleProxyClientProvider extends Object implements ProxyClient
ProxyClient.ProxyTarget| Constructor and Description |
|---|
SimpleProxyClientProvider(URI uri) |
| Modifier and Type | Method and Description |
|---|---|
ProxyClient.ProxyTarget |
findTarget(HttpServerExchange exchange)
Finds a proxy target for this request, returning null if none can be found.
|
void |
getConnection(ProxyClient.ProxyTarget target,
HttpServerExchange exchange,
ProxyCallback<ProxyConnection> callback,
long timeout,
TimeUnit timeUnit)
Gets a proxy connection for the given request.
|
public SimpleProxyClientProvider(URI uri)
public ProxyClient.ProxyTarget findTarget(HttpServerExchange exchange)
ProxyClientfindTarget in interface ProxyClientexchange - The exchangepublic void getConnection(ProxyClient.ProxyTarget target, HttpServerExchange exchange, ProxyCallback<ProxyConnection> callback, long timeout, TimeUnit timeUnit)
ProxyClientgetConnection in interface ProxyClientexchange - The exchangecallback - The callbacktimeout - The timeouttimeUnit - Time unit for the timeoutCopyright © 2016 JBoss by Red Hat. All rights reserved.