@Deprecated public class SimpleProxyClientProvider extends Object implements ProxyClient
LoadBalancingProxyClient
should be used instead. This proxy client is too simplistic for real world use cases, and it not set up to use SSL.ProxyClient.MaxRetriesProxyTarget, ProxyClient.ProxyTarget
Constructor and Description |
---|
SimpleProxyClientProvider(URI uri) Deprecated. |
Modifier and Type | Method and Description |
---|---|
ProxyClient.ProxyTarget | findTarget(HttpServerExchange exchange) Deprecated. 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) Deprecated. Gets a proxy connection for the given request. |
public SimpleProxyClientProvider(URI uri)
public ProxyClient.ProxyTarget findTarget(HttpServerExchange exchange)
ProxyClient
findTarget
in interface ProxyClient
exchange
- The exchangepublic void getConnection(ProxyClient.ProxyTarget target, HttpServerExchange exchange, ProxyCallback<ProxyConnection> callback, long timeout, TimeUnit timeUnit)
ProxyClient
getConnection
in interface ProxyClient
exchange
- The exchangecallback
- The callbacktimeout
- The timeouttimeUnit
- Time unit for the timeoutCopyright © 2017 JBoss by Red Hat. All rights reserved.