1
1
/*
2
- * Copyright 2002-2018 the original author or authors.
2
+ * Copyright 2002-2019 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -72,14 +72,14 @@ protected boolean hasError(HttpStatus statusCode) {
72
72
/**
73
73
* Template method called from {@link #hasError(ClientHttpResponse)}.
74
74
* <p>The default implementation checks if the given status code is
75
- * {@code HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or
76
- * {@code HttpStatus.Series#SERVER_ERROR SERVER_ERROR}.
75
+ * {@link org.springframework.http. HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or
76
+ * {@link org.springframework.http. HttpStatus.Series#SERVER_ERROR SERVER_ERROR}.
77
77
* Can be overridden in subclasses.
78
78
* @param unknownStatusCode the HTTP status code as raw value
79
79
* @return {@code true} if the response indicates an error; {@code false} otherwise
80
80
* @since 4.3.21
81
- * @see HttpStatus.Series#CLIENT_ERROR
82
- * @see HttpStatus.Series#SERVER_ERROR
81
+ * @see org.springframework.http. HttpStatus.Series#CLIENT_ERROR
82
+ * @see org.springframework.http. HttpStatus.Series#SERVER_ERROR
83
83
*/
84
84
protected boolean hasError (int unknownStatusCode ) {
85
85
HttpStatus .Series series = HttpStatus .Series .resolve (unknownStatusCode );
@@ -105,9 +105,10 @@ public void handleError(ClientHttpResponse response) throws IOException {
105
105
/**
106
106
* Handle the error in the given response with the given resolved status code.
107
107
* <p>The default implementation throws an {@link HttpClientErrorException}
108
- * if the status code is {@link HttpStatus.Series#CLIENT_ERROR}, an
109
- * {@link HttpServerErrorException} if it is {@link HttpStatus.Series#SERVER_ERROR},
110
- * and an {@link UnknownHttpStatusCodeException} in other cases.
108
+ * if the status code is {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR
109
+ * CLIENT_ERROR}, an {@link HttpServerErrorException} if it is
110
+ * {@link org.springframework.http.HttpStatus.Series#SERVER_ERROR SERVER_ERROR},
111
+ * or an {@link UnknownHttpStatusCodeException} in other cases.
111
112
* @since 5.0
112
113
* @see HttpClientErrorException#create
113
114
* @see HttpServerErrorException#create
0 commit comments