public class RedirectingEurekaHttpClient extends EurekaHttpClientDecorator
EurekaHttpClient that follows redirect links, and executes the requests against
the finally resolved endpoint.
If registration and query requests must handled separately, two different instances shall be created.
EurekaHttpClientDecorator.RequestExecutor<R>, EurekaHttpClientDecorator.RequestType| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_FOLLOWED_REDIRECTS |
| Constructor and Description |
|---|
RedirectingEurekaHttpClient(java.lang.String serviceUrl,
TransportClientFactory factory,
DnsService dnsService)
The delegate client should pass through 3xx responses without further processing.
|
| Modifier and Type | Method and Description |
|---|---|
static TransportClientFactory |
createFactory(TransportClientFactory delegateFactory) |
protected <R> EurekaHttpResponse<R> |
execute(EurekaHttpClientDecorator.RequestExecutor<R> requestExecutor) |
void |
shutdown() |
cancel, deleteStatusOverride, getApplication, getApplications, getDelta, getInstance, getInstance, getSecureVip, getVip, register, sendHeartBeat, statusUpdatepublic static final int MAX_FOLLOWED_REDIRECTS
public RedirectingEurekaHttpClient(java.lang.String serviceUrl,
TransportClientFactory factory,
DnsService dnsService)
public void shutdown()
protected <R> EurekaHttpResponse<R> execute(EurekaHttpClientDecorator.RequestExecutor<R> requestExecutor)
execute in class EurekaHttpClientDecoratorpublic static TransportClientFactory createFactory(TransportClientFactory delegateFactory)