Skip to content

Commit 7868eb6

Browse files
committed
Update javadoc to use 2XX range terminology
1 parent 9ce36aa commit 7868eb6

File tree

3 files changed

+18
-27
lines changed

3 files changed

+18
-27
lines changed

client/src/main/java/io/avaje/http/client/HttpAsyncResponse.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,8 @@ public interface HttpAsyncResponse {
177177
/**
178178
* Process expecting a bean response body (typically from json content).
179179
* <p>
180-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
181-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
182-
* by default followed apart from HTTPS to HTTP.
180+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
181+
* the HttpResponse. This is the cause in the CompletionException.
183182
*
184183
* <pre>{@code
185184
*
@@ -212,9 +211,8 @@ public interface HttpAsyncResponse {
212211
/**
213212
* Process expecting a list of beans response body (typically from json content).
214213
* <p>
215-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
216-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
217-
* by default followed apart from HTTPS to HTTP.
214+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
215+
* the HttpResponse. This is the cause in the CompletionException.
218216
*
219217
* <pre>{@code
220218
*
@@ -252,9 +250,8 @@ public interface HttpAsyncResponse {
252250
* may not be available at the time of the callback. As such {@link RequestLogger}
253251
* will not include response content in logging stream request/response.
254252
* <p>
255-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
256-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
257-
* by default followed apart from HTTPS to HTTP.
253+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
254+
* the HttpResponse. This is the cause in the CompletionException.
258255
*
259256
* <pre>{@code
260257
*

client/src/main/java/io/avaje/http/client/HttpCallResponse.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,8 @@ public interface HttpCallResponse {
120120
/**
121121
* A bean response to execute async or sync.
122122
* <p>
123-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
124-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
125-
* by default followed apart from HTTPS to HTTP.
123+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
124+
* the HttpResponse. This is the cause in the CompletionException.
126125
*
127126
* <pre>{@code
128127
*
@@ -142,9 +141,8 @@ public interface HttpCallResponse {
142141
/**
143142
* Process expecting a list of beans response body (typically from json content).
144143
* <p>
145-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
146-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
147-
* by default followed apart from HTTPS to HTTP.
144+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
145+
* the HttpResponse. This is the cause in the CompletionException.
148146
*
149147
* <pre>{@code
150148
*
@@ -163,9 +161,8 @@ public interface HttpCallResponse {
163161
/**
164162
* Process expecting a stream of beans response body (typically from json content).
165163
* <p>
166-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
167-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
168-
* by default followed apart from HTTPS to HTTP.
164+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
165+
* the HttpResponse. This is the cause in the CompletionException.
169166
*
170167
* <pre>{@code
171168
*

client/src/main/java/io/avaje/http/client/HttpClientResponse.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ public interface HttpClientResponse {
3636
/**
3737
* Return the response as a single bean.
3838
* <p>
39-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
40-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
41-
* by default followed apart from HTTPS to HTTP.
39+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
40+
* the HttpResponse. This is the cause in the CompletionException.
4241
*
4342
* @param type The type of the bean to convert the response content into.
4443
* @param <T> The type that the content is converted to.
@@ -50,9 +49,8 @@ public interface HttpClientResponse {
5049
/**
5150
* Return the response as a list of beans.
5251
* <p>
53-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
54-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
55-
* by default followed apart from HTTPS to HTTP.
52+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
53+
* the HttpResponse. This is the cause in the CompletionException.
5654
*
5755
* @param type The type of the bean to convert the response content into.
5856
* @param <T> The type that the content is converted to.
@@ -72,9 +70,8 @@ public interface HttpClientResponse {
7270
* may not be available at the time of the callback. As such {@link RequestLogger}
7371
* will not include response content when logging stream request/response
7472
* <p>
75-
* If the HTTP statusCode is 300 or above a HttpException is throw which contains
76-
* the HttpResponse. This is the cause in the CompletionException. Redirects are
77-
* by default followed apart from HTTPS to HTTP.
73+
* If the HTTP statusCode is not in the 2XX range a HttpException is throw which contains
74+
* the HttpResponse. This is the cause in the CompletionException.
7875
*
7976
* @param type The type of the bean to convert the response content into.
8077
* @param <T> The type that the content is converted to.

0 commit comments

Comments
 (0)