Mark HttpRequest::getMethodValue and ClientHttpResponse::getRawStatusCode for removal
This commit is contained in:
@@ -63,8 +63,10 @@ public interface ClientResponse {
|
||||
* @since 5.1
|
||||
* @deprecated as of 6.0, in favor of {@link #statusCode()}
|
||||
*/
|
||||
@Deprecated(since = "6.0")
|
||||
int rawStatusCode();
|
||||
@Deprecated(since = "6.0", forRemoval = true)
|
||||
default int rawStatusCode() {
|
||||
return statusCode().value();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the headers of this response.
|
||||
|
||||
@@ -118,12 +118,6 @@ class DefaultClientResponse implements ClientResponse {
|
||||
return this.response.getStatusCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int rawStatusCode() {
|
||||
return this.response.getRawStatusCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Headers headers() {
|
||||
return this.headers;
|
||||
|
||||
@@ -56,12 +56,6 @@ final class DefaultClientResponseBuilder implements ClientResponse.Builder {
|
||||
return HttpMethod.valueOf("UNKNOWN");
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public String getMethodValue() {
|
||||
return "UNKNOWN";
|
||||
}
|
||||
|
||||
@Override
|
||||
public URI getURI() {
|
||||
return this.empty;
|
||||
@@ -261,12 +255,6 @@ final class DefaultClientResponseBuilder implements ClientResponse.Builder {
|
||||
return this.statusCode;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int getRawStatusCode() {
|
||||
return this.statusCode.value();
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("ConstantConditions")
|
||||
public HttpHeaders getHeaders() {
|
||||
|
||||
@@ -405,12 +405,6 @@ class DefaultWebClient implements WebClient {
|
||||
return httpMethod;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public String getMethodValue() {
|
||||
return httpMethod.name();
|
||||
}
|
||||
|
||||
@Override
|
||||
public URI getURI() {
|
||||
return this.uri;
|
||||
|
||||
@@ -144,12 +144,6 @@ public abstract class ExchangeFunctions {
|
||||
return request.method();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public String getMethodValue() {
|
||||
return request.method().name();
|
||||
}
|
||||
|
||||
@Override
|
||||
public URI getURI() {
|
||||
return request.url();
|
||||
|
||||
@@ -78,12 +78,6 @@ public class ClientResponseWrapper implements ClientResponse {
|
||||
return this.delegate.statusCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public int rawStatusCode() {
|
||||
return this.delegate.rawStatusCode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Headers headers() {
|
||||
return this.delegate.headers();
|
||||
|
||||
@@ -262,12 +262,6 @@ class DefaultServerRequestBuilder implements ServerRequest.Builder {
|
||||
return this.method;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public String getMethodValue() {
|
||||
return this.method.name();
|
||||
}
|
||||
|
||||
@Override
|
||||
public URI getURI() {
|
||||
return this.uri;
|
||||
|
||||
Reference in New Issue
Block a user