diff --git a/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientBuilder.java b/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientBuilder.java index 6f6d24034f3..97ecb9fe1cb 100644 --- a/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientBuilder.java +++ b/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientBuilder.java @@ -241,7 +241,9 @@ public HttpClientBuilder using(List defaultHeaders) { * * @param httpProcessor a {@link HttpProcessor} instance * @return {@code} this + * @deprecated */ + @Deprecated public HttpClientBuilder using(HttpProcessor httpProcessor) { this.httpProcessor = httpProcessor; return this; @@ -252,7 +254,9 @@ public HttpClientBuilder using(HttpProcessor httpProcessor) { * * @param serviceUnavailableRetryStrategy a {@link ServiceUnavailableRetryStrategy} instance * @return {@code} this + * @deprecated will be combined with {@link #using(HttpRequestRetryHandler)} in {@code using(HttpRequestRetryStrategy)} */ + @Deprecated public HttpClientBuilder using(ServiceUnavailableRetryStrategy serviceUnavailableRetryStrategy) { this.serviceUnavailableRetryStrategy = serviceUnavailableRetryStrategy; return this; diff --git a/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientConfiguration.java b/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientConfiguration.java index 2132c4e9ebd..d0f18147b8e 100644 --- a/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientConfiguration.java +++ b/dropwizard-client/src/main/java/io/dropwizard/client/HttpClientConfiguration.java @@ -134,7 +134,9 @@ public void setCookiesEnabled(boolean enabled) { /** * @since 2.0 + * @deprecated */ + @Deprecated @JsonProperty public boolean isNormalizeUriEnabled() { return normalizeUriEnabled; @@ -142,7 +144,9 @@ public boolean isNormalizeUriEnabled() { /** * @since 2.0 + * @deprecated */ + @Deprecated @JsonProperty public void setNormalizeUriEnabled(final boolean normalizeUriEnabled) { this.normalizeUriEnabled = normalizeUriEnabled; diff --git a/dropwizard-client/src/main/java/io/dropwizard/client/JerseyClientBuilder.java b/dropwizard-client/src/main/java/io/dropwizard/client/JerseyClientBuilder.java index 98c37ee8cf6..59f4739074d 100644 --- a/dropwizard-client/src/main/java/io/dropwizard/client/JerseyClientBuilder.java +++ b/dropwizard-client/src/main/java/io/dropwizard/client/JerseyClientBuilder.java @@ -310,7 +310,9 @@ public JerseyClientBuilder using(CredentialsProvider credentialsProvider) { * * @param serviceUnavailableRetryStrategy a {@link ServiceUnavailableRetryStrategy} instance * @return {@code this} + * @deprecated will be combined with {@link #using(HttpRequestRetryHandler)} in {@code using(HttpRequestRetryStrategy)} */ + @Deprecated public JerseyClientBuilder using(ServiceUnavailableRetryStrategy serviceUnavailableRetryStrategy) { apacheHttpClientBuilder.using(serviceUnavailableRetryStrategy); return this; diff --git a/dropwizard-health/src/main/java/io/dropwizard/health/DefaultHealthFactory.java b/dropwizard-health/src/main/java/io/dropwizard/health/DefaultHealthFactory.java index d5a5b23de65..674bdf4422e 100644 --- a/dropwizard-health/src/main/java/io/dropwizard/health/DefaultHealthFactory.java +++ b/dropwizard-health/src/main/java/io/dropwizard/health/DefaultHealthFactory.java @@ -75,10 +75,12 @@ public void setEnabled(boolean enabled) { this.enabled = enabled; } + @JsonProperty("healthChecks") public List getHealthCheckConfigurations() { return healthChecks; } + @JsonProperty("healthChecks") public void setHealthCheckConfigurations(final List healthChecks) { this.healthChecks = healthChecks; } @@ -131,10 +133,18 @@ public void setHealthResponderFactory(HealthResponderFactory healthResponderFact this.healthResponderFactory = healthResponderFactory; } + /** + * @deprecated use {@link #getHealthCheckConfigurations()} instead + */ + @Deprecated public List getHealthChecks() { return healthChecks; } + /** + * @deprecated use {@link #setHealthCheckConfigurations(List)} instead + */ + @Deprecated public void setHealthChecks(List healthChecks) { this.healthChecks = healthChecks; } diff --git a/dropwizard-jetty/src/main/java/io/dropwizard/jetty/GzipHandlerFactory.java b/dropwizard-jetty/src/main/java/io/dropwizard/jetty/GzipHandlerFactory.java index f2bb0c3e4bd..828cad1f0cd 100644 --- a/dropwizard-jetty/src/main/java/io/dropwizard/jetty/GzipHandlerFactory.java +++ b/dropwizard-jetty/src/main/java/io/dropwizard/jetty/GzipHandlerFactory.java @@ -212,10 +212,18 @@ public void setGzipCompatibleInflation(boolean gzipCompatibleInflation) { this.gzipCompatibleInflation = gzipCompatibleInflation; } + /** + * @deprecated + */ + @Deprecated public Set getExcludedUserAgentPatterns() { return excludedUserAgentPatterns; } + /** + * @deprecated + */ + @Deprecated public void setExcludedUserAgentPatterns(Set excludedUserAgentPatterns) { this.excludedUserAgentPatterns = excludedUserAgentPatterns; }