Deprecated
LoadBalancingProxyClient should be used instead. This proxy client is too simplistic for
real world use cases, and it not set up to use SSL.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final UndertowClient | |
| private final AttachmentKey | |
| private static final ProxyClient. | |
| private final URI |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ProxyClient. | findTarget(HttpServerExchange
The exchange exchange)Implements io. Finds a proxy target for this request, returning null if none can be found. |
| public void | getConnection(ProxyClient.
The exchange exchange, ProxyCallback<ProxyConnection> The callback callback, long The timeout timeout, TimeUnit Time unit for the timeout timeUnit)Implements io. Gets a proxy connection for the given request. |
| client | back to summary |
|---|---|
| private final UndertowClient client | |
| clientAttachmentKey | back to summary |
|---|---|
| private final AttachmentKey<ClientConnection> clientAttachmentKey | |
| TARGET | back to summary |
|---|---|
| private static final ProxyClient. | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| SimpleProxyClientProvider | back to summary |
|---|---|
| public SimpleProxyClientProvider(URI uri) | |
| findTarget | back to summary |
|---|---|
| public ProxyClient. Implements io. Doc from io. Finds a proxy target for this request, returning null if none can be found. If this method returns null it means that there is no backend available to handle this request, and it should proceed as normal.
| |
| getConnection | back to summary |
|---|---|
| public void getConnection(ProxyClient. Implements io. Doc from io. Gets a proxy connection for the given request.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ProxyCallback | |
| private final HttpServerExchange |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | completed(final ClientConnection
the operation result connection)Implements io. Invoked when an operation completed. |
| public void | failed(IOException
the exception e)Implements io. Invoked when the operation failed. |
| callback | back to summary |
|---|---|
| private final ProxyCallback<ProxyConnection> callback | |
| exchange | back to summary |
|---|---|
| private final HttpServerExchange exchange | |
| ConnectNotifier | back to summary |
|---|---|
| private ConnectNotifier(ProxyCallback<ProxyConnection> callback, HttpServerExchange exchange) | |
| completed | back to summary |
|---|---|
| public void completed(final ClientConnection connection) Implements io. Doc from io. Invoked when an operation completed.
| |
| failed | back to summary |
|---|---|
| public void failed(IOException e) Implements io. Doc from io. Invoked when the operation failed.
| |