Skip to content

Commit 688b8a8

Browse files
adamkoryntabuilduser
andauthored
Feature/rss client (#288)
* remove content-type from GET and DELETE requests * add support for RSS feed retrieval and data model definitions * add tests for RSS controller and endpoint input, update XML parsing in data model * Autogenerated JaCoCo coverage badge --------- Co-authored-by: builduser <builduser@rmanet.com>
1 parent 950ae3a commit 688b8a8

76 files changed

Lines changed: 1799 additions & 611 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/coveragereport/badge_linecoverage.svg

Lines changed: 1 addition & 1 deletion
Loading

cwbi-auth-http-client/src/main/java/hec/army/usace/hec/cwbi/auth/http/client/OpenIdTokenController.java

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
/*
2+
* MIT License
3+
*
4+
* Copyright (c) 2025 Hydrologic Engineering Center
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
125
package hec.army.usace.hec.cwbi.auth.http.client;
226

327
import java.io.IOException;
@@ -9,8 +33,6 @@
933
import mil.army.usace.hec.cwms.http.client.request.HttpRequestExecutor;
1034

1135
public abstract class OpenIdTokenController {
12-
13-
static final String ACCEPT_HEADER = "application/json";
1436
private static final String TOKEN_ENDPOINT_KEY = "token_endpoint";
1537
private static final String AUTH_ENDPOINT_KEY = "authorization_endpoint";
1638

@@ -34,8 +56,7 @@ public final ApiConnectionInfo retrieveTokenUrl(ApiConnectionInfo apiConnectionI
3456
.withSslSocketData(sslSocketData)
3557
.build();
3658
HttpRequestExecutor executor = new HttpRequestBuilderImpl(wellKnownApiConnectionInfo)
37-
.get()
38-
.withMediaType(ACCEPT_HEADER);
59+
.get();
3960
try (HttpRequestResponse response = executor.execute()) {
4061
tokenEndpoint = OAuth2ObjectMapper.getValueForKey(response.getBody(), TOKEN_ENDPOINT_KEY);
4162
}
@@ -53,8 +74,7 @@ public final ApiConnectionInfo retrieveAuthUrl(ApiConnectionInfo apiConnectionIn
5374
.withSslSocketData(sslSocketData)
5475
.build();
5576
HttpRequestExecutor executor = new HttpRequestBuilderImpl(wellKnownApiConnectionInfo)
56-
.get()
57-
.withMediaType(ACCEPT_HEADER);
77+
.get();
5878
try (HttpRequestResponse response = executor.execute()) {
5979
authEndpoint = OAuth2ObjectMapper.getValueForKey(response.getBody(), AUTH_ENDPOINT_KEY);
6080
}

cwbi-auth-http-client/src/test/java/hec/army/usace/hec/cwbi/auth/http/client/TestOidcTokenProvider.java

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2024 Hydrologic Engineering Center
4+
* Copyright (c) 2025 Hydrologic Engineering Center
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -23,45 +23,28 @@
2323
*/
2424
package hec.army.usace.hec.cwbi.auth.http.client;
2525

26-
import static hec.army.usace.hec.cwbi.auth.http.client.trustmanagers.CwbiAuthTrustManager.TOKEN_TEST_URL;
27-
import static hec.army.usace.hec.cwbi.auth.http.client.trustmanagers.CwbiAuthTrustManager.TOKEN_URL;
28-
import java.util.Collections;
29-
import javax.net.ssl.KeyManager;
30-
import static org.junit.jupiter.api.Assertions.assertEquals;
3126
import static org.junit.jupiter.api.Assertions.assertNotNull;
27+
import static org.junit.jupiter.api.Assertions.fail;
3228

33-
import java.awt.Desktop;
34-
import java.awt.Desktop.Action;
3529
import java.io.File;
3630
import java.io.IOException;
37-
import java.net.InetAddress;
38-
import java.net.Socket;
3931
import java.net.URL;
4032
import java.nio.file.Files;
4133
import java.nio.file.Path;
42-
import java.util.concurrent.ExecutorService;
43-
import java.util.concurrent.Executors;
44-
import java.util.concurrent.Future;
45-
import java.util.concurrent.TimeUnit;
4634
import java.util.logging.Logger;
47-
48-
import javax.net.ssl.SSLSocketFactory;
49-
import mil.army.usace.hec.cwms.http.client.MockHttpServer;
5035
import mil.army.usace.hec.cwms.http.client.ApiConnectionInfo;
5136
import mil.army.usace.hec.cwms.http.client.ApiConnectionInfoBuilder;
5237
import mil.army.usace.hec.cwms.http.client.HttpRequestBuilderImpl;
5338
import mil.army.usace.hec.cwms.http.client.HttpRequestResponse;
39+
import mil.army.usace.hec.cwms.http.client.MockHttpServer;
5440
import mil.army.usace.hec.cwms.http.client.auth.OAuth2Token;
5541
import mil.army.usace.hec.cwms.http.client.request.HttpRequestExecutor;
5642
import mil.army.usace.hec.cwms.http.client.request.QueryParameters;
5743
import okhttp3.HttpUrl;
5844
import okhttp3.mockwebserver.Dispatcher;
5945
import okhttp3.mockwebserver.MockResponse;
6046
import okhttp3.mockwebserver.RecordedRequest;
61-
6247
import org.junit.jupiter.api.AfterEach;
63-
import static org.junit.jupiter.api.Assertions.fail;
64-
6548
import org.junit.jupiter.api.BeforeEach;
6649
import org.junit.jupiter.api.Test;
6750

@@ -147,8 +130,7 @@ else if (path.endsWith("/token")) {
147130
LOGGER.info("Sending " + u.toString());
148131
HttpRequestExecutor executor =
149132
new HttpRequestBuilderImpl(new ApiConnectionInfoBuilder(u.toString()).build())
150-
.get()
151-
.withMediaType("text/plain");
133+
.get();
152134

153135
try (HttpRequestResponse response = executor.execute()) {
154136
// redirect should be automatically followed. If changes

cwms-aaa-client/src/main/java/mil/army/usace/hec/cwms/aaa/client/CwmsLoginController.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2023 Hydrologic Engineering Center
4+
* Copyright (c) 2025 Hydrologic Engineering Center
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -27,6 +27,7 @@
2727
import com.fasterxml.jackson.core.json.JsonReadFeature;
2828
import com.fasterxml.jackson.databind.ObjectMapper;
2929
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
30+
import java.io.IOException;
3031
import mil.army.usace.hec.cwms.http.client.ApiConnectionInfo;
3132
import mil.army.usace.hec.cwms.http.client.EndpointInput;
3233
import mil.army.usace.hec.cwms.http.client.HttpCookie;
@@ -35,8 +36,6 @@
3536
import mil.army.usace.hec.cwms.http.client.HttpRequestResponse;
3637
import mil.army.usace.hec.cwms.http.client.SslCanceledException;
3738

38-
import java.io.IOException;
39-
4039
public final class CwmsLoginController {
4140

4241
static final String JSESSIONID = "JSESSIONID";
@@ -69,7 +68,6 @@ protected HttpRequestBuilder addInputParameters(HttpRequestBuilder httpRequestBu
6968
}
7069
})
7170
.get()
72-
.withMediaType(APPLICATION_JSON)
7371
.execute()) {
7472
String jsessionIdSso = login.getCookies()
7573
.stream()
@@ -105,7 +103,6 @@ protected HttpRequestBuilder addInputParameters(HttpRequestBuilder httpRequestBu
105103
public void logout(ApiConnectionInfo apiConnectionInfo) throws IOException {
106104
try (HttpRequestResponse login = new HttpRequestBuilderImpl(apiConnectionInfo, LOGOUT_ENDPOINT)
107105
.get()
108-
.withMediaType(APPLICATION_JSON)
109106
.execute()) {
110107
login.getBody();
111108
}

cwms-data-api-client/src/main/java/mil/army/usace/hec/cwms/data/api/client/controllers/BasinController.java

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,40 @@
1+
/*
2+
* MIT License
3+
*
4+
* Copyright (c) 2025 Hydrologic Engineering Center
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
*
13+
* The above copyright notice and this permission notice shall be included in all
14+
* copies or substantial portions of the Software.
15+
*
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
* SOFTWARE.
23+
*/
24+
125
package mil.army.usace.hec.cwms.data.api.client.controllers;
226

327
import static mil.army.usace.hec.cwms.data.api.client.controllers.CdaEndpointConstants.ACCEPT_HEADER_V1;
428
import static mil.army.usace.hec.cwms.data.api.client.controllers.CdaEndpointConstants.ACCEPT_QUERY_HEADER;
29+
30+
import java.io.IOException;
31+
import java.util.List;
32+
import mil.army.usace.hec.cwms.data.api.client.model.Basin;
33+
import mil.army.usace.hec.cwms.data.api.client.model.RadarObjectMapper;
534
import mil.army.usace.hec.cwms.http.client.ApiConnectionInfo;
635
import mil.army.usace.hec.cwms.http.client.HttpRequestBuilderImpl;
736
import mil.army.usace.hec.cwms.http.client.HttpRequestResponse;
837
import mil.army.usace.hec.cwms.http.client.request.HttpRequestExecutor;
9-
import mil.army.usace.hec.cwms.data.api.client.model.Basin;
10-
import mil.army.usace.hec.cwms.data.api.client.model.RadarObjectMapper;
11-
12-
import java.io.IOException;
13-
import java.util.List;
1438

1539
public final class BasinController {
1640
private static final String BASIN_ENDPOINT = "basins";
@@ -20,8 +44,7 @@ public Basin retrieveBasin(ApiConnectionInfo apiConnectionInfo, BasinEndpointInp
2044
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, endpoint)
2145
.addQueryHeader(ACCEPT_QUERY_HEADER, ACCEPT_HEADER_V1)
2246
.addEndpointInput(input)
23-
.get()
24-
.withMediaType(ACCEPT_HEADER_V1);
47+
.get();
2548
try (HttpRequestResponse response = executor.execute()) {
2649
return RadarObjectMapper.mapJsonToObject(response.getBody(), Basin.class);
2750
}
@@ -31,8 +54,7 @@ public List<Basin> retrieveBasins(ApiConnectionInfo apiConnectionInfo, BasinEndp
3154
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, BASIN_ENDPOINT)
3255
.addQueryHeader(ACCEPT_QUERY_HEADER, ACCEPT_HEADER_V1)
3356
.addEndpointInput(input)
34-
.get()
35-
.withMediaType(ACCEPT_HEADER_V1);
57+
.get();
3658
try (HttpRequestResponse response = executor.execute()) {
3759
return RadarObjectMapper.mapJsonToListOfObjects(response.getBody(), Basin.class);
3860
}
@@ -66,7 +88,6 @@ public void deleteBasin(ApiConnectionInfo apiConnectionInfo, BasinEndpointInput.
6688
.addQueryHeader(ACCEPT_QUERY_HEADER, ACCEPT_HEADER_V1)
6789
.addEndpointInput(input)
6890
.delete()
69-
.withMediaType(ACCEPT_HEADER_V1)
7091
.execute()
7192
.close();
7293
}

cwms-data-api-client/src/main/java/mil/army/usace/hec/cwms/data/api/client/controllers/BinaryTimeSeriesController.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2024 Hydrologic Engineering Center
4+
* Copyright (c) 2025 Hydrologic Engineering Center
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -26,15 +26,15 @@
2626

2727
import static mil.army.usace.hec.cwms.data.api.client.controllers.CdaEndpointConstants.ACCEPT_HEADER_V2;
2828
import static mil.army.usace.hec.cwms.data.api.client.controllers.CdaEndpointConstants.ACCEPT_QUERY_HEADER;
29+
30+
import java.io.IOException;
31+
import mil.army.usace.hec.cwms.data.api.client.model.BinaryTimeSeries;
32+
import mil.army.usace.hec.cwms.data.api.client.model.BinaryTimeSeriesRow;
33+
import mil.army.usace.hec.cwms.data.api.client.model.RadarObjectMapper;
2934
import mil.army.usace.hec.cwms.http.client.ApiConnectionInfo;
3035
import mil.army.usace.hec.cwms.http.client.HttpRequestBuilderImpl;
3136
import mil.army.usace.hec.cwms.http.client.HttpRequestResponse;
3237
import mil.army.usace.hec.cwms.http.client.request.HttpRequestExecutor;
33-
import mil.army.usace.hec.cwms.data.api.client.model.BinaryTimeSeries;
34-
import mil.army.usace.hec.cwms.data.api.client.model.BinaryTimeSeriesRow;
35-
import mil.army.usace.hec.cwms.data.api.client.model.RadarObjectMapper;
36-
37-
import java.io.IOException;
3838

3939
public final class BinaryTimeSeriesController {
4040

@@ -46,8 +46,7 @@ public BinaryTimeSeries retrieveTimeSeries(ApiConnectionInfo apiConnectionInfo,
4646
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, BINARY_TIME_SERIES_ENDPOINT)
4747
.addQueryHeader(ACCEPT_QUERY_HEADER, ACCEPT_HEADER_V2)
4848
.addEndpointInput(input)
49-
.get()
50-
.withMediaType(ACCEPT_HEADER_V2);
49+
.get();
5150
try (HttpRequestResponse response = executor.execute()) {
5251
retVal = RadarObjectMapper.mapJsonToObject(response.getBody(), BinaryTimeSeries.class);
5352
}
@@ -72,7 +71,6 @@ public void deleteTimeSeries(ApiConnectionInfo apiConnectionInfo, BinaryTimeSeri
7271
.addQueryHeader(ACCEPT_QUERY_HEADER, ACCEPT_HEADER_V2)
7372
.addEndpointInput(input)
7473
.delete()
75-
.withMediaType(ACCEPT_HEADER_V2)
7674
.execute()
7775
.close();
7876
}

cwms-data-api-client/src/main/java/mil/army/usace/hec/cwms/data/api/client/controllers/CatalogController.java

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* MIT License
33
*
4-
* Copyright (c) 2024 Hydrologic Engineering Center
4+
* Copyright (c) 2025 Hydrologic Engineering Center
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -26,11 +26,6 @@
2626

2727
import java.io.IOException;
2828
import java.util.List;
29-
import static mil.army.usace.hec.cwms.data.api.client.controllers.CdaEndpointConstants.ACCEPT_HEADER_V2;
30-
import mil.army.usace.hec.cwms.http.client.ApiConnectionInfo;
31-
import mil.army.usace.hec.cwms.http.client.HttpRequestBuilderImpl;
32-
import mil.army.usace.hec.cwms.http.client.HttpRequestResponse;
33-
import mil.army.usace.hec.cwms.http.client.request.HttpRequestExecutor;
3429
import mil.army.usace.hec.cwms.data.api.client.model.County;
3530
import mil.army.usace.hec.cwms.data.api.client.model.DbTimeZone;
3631
import mil.army.usace.hec.cwms.data.api.client.model.LocationCatalog;
@@ -39,6 +34,10 @@
3934
import mil.army.usace.hec.cwms.data.api.client.model.State;
4035
import mil.army.usace.hec.cwms.data.api.client.model.TimeSeriesCatalog;
4136
import mil.army.usace.hec.cwms.data.api.client.model.Unit;
37+
import mil.army.usace.hec.cwms.http.client.ApiConnectionInfo;
38+
import mil.army.usace.hec.cwms.http.client.HttpRequestBuilderImpl;
39+
import mil.army.usace.hec.cwms.http.client.HttpRequestResponse;
40+
import mil.army.usace.hec.cwms.http.client.request.HttpRequestExecutor;
4241

4342
public final class CatalogController {
4443

@@ -55,8 +54,7 @@ public TimeSeriesCatalog retrieveTimeSeriesCatalog(ApiConnectionInfo apiConnecti
5554
TimeSeriesCatalog retVal;
5655
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, CATALOG_TIMESERIES_ENDPOINT)
5756
.addEndpointInput(input)
58-
.get()
59-
.withMediaType(ACCEPT_HEADER_V2);
57+
.get();
6058
try (HttpRequestResponse response = executor.execute()) {
6159
retVal = RadarObjectMapper.mapJsonToObject(response.getBody(), TimeSeriesCatalog.class);
6260
}
@@ -67,8 +65,7 @@ public LocationCatalog retrieveLocationCatalog(ApiConnectionInfo apiConnectionIn
6765
LocationCatalog retVal;
6866
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, CATALOG_LOCATIONS_ENDPOINT)
6967
.addEndpointInput(input)
70-
.get()
71-
.withMediaType(ACCEPT_HEADER_V2);
68+
.get();
7269
try (HttpRequestResponse response = executor.execute()) {
7370
retVal = RadarObjectMapper.mapJsonToObject(response.getBody(), LocationCatalog.class);
7471
}
@@ -78,8 +75,7 @@ public LocationCatalog retrieveLocationCatalog(ApiConnectionInfo apiConnectionIn
7875
public List<Parameter> retrieveParameterCatalog(ApiConnectionInfo apiConnectionInfo) throws IOException {
7976
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, CATALOG_PARAMETERS_ENDPOINT)
8077
.addEndpointInput(new ParameterCatalogEndpointInput())
81-
.get()
82-
.withMediaType(ACCEPT_HEADER_V2);
78+
.get();
8379
try (HttpRequestResponse response = executor.execute()) {
8480
return RadarObjectMapper.mapJsonToListOfObjects(response.getBody(), Parameter.class, "parameters", "parameters");
8581
}
@@ -88,8 +84,7 @@ public List<Parameter> retrieveParameterCatalog(ApiConnectionInfo apiConnectionI
8884
public List<Unit> retrieveUnitCatalog(ApiConnectionInfo apiConnectionInfo) throws IOException {
8985
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, CATALOG_UNITS_ENDPOINT)
9086
.addEndpointInput(new UnitCatalogEndpointInput())
91-
.get()
92-
.withMediaType(ACCEPT_HEADER_V2);
87+
.get();
9388
try (HttpRequestResponse response = executor.execute()) {
9489
return RadarObjectMapper.mapJsonToListOfObjects(response.getBody(), Unit.class, "units", "units");
9590
}
@@ -98,8 +93,7 @@ public List<Unit> retrieveUnitCatalog(ApiConnectionInfo apiConnectionInfo) throw
9893
public List<DbTimeZone> retrieveTimeZoneCatalog(ApiConnectionInfo apiConnectionInfo) throws IOException {
9994
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, CATALOG_TIMEZONES_ENDPOINT)
10095
.addEndpointInput(new TimeZoneCatalogEndpointInput())
101-
.get()
102-
.withMediaType(ACCEPT_HEADER_V2);
96+
.get();
10397
try (HttpRequestResponse response = executor.execute()) {
10498
return RadarObjectMapper.mapJsonToListOfObjects(response.getBody(), DbTimeZone.class, "time-zones");
10599
}
@@ -108,8 +102,7 @@ public List<DbTimeZone> retrieveTimeZoneCatalog(ApiConnectionInfo apiConnectionI
108102
public List<County> retrieveCountyCatalog(ApiConnectionInfo apiConnectionInfo) throws IOException {
109103
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, CATALOG_COUNTY_ENDPOINT)
110104
.addEndpointInput(new CountyCatalogEndpointInput())
111-
.get()
112-
.withMediaType(ACCEPT_HEADER_V2);
105+
.get();
113106
try (HttpRequestResponse response = executor.execute()) {
114107
return RadarObjectMapper.mapJsonToListOfObjects(response.getBody(), County.class);
115108
}
@@ -118,8 +111,7 @@ public List<County> retrieveCountyCatalog(ApiConnectionInfo apiConnectionInfo) t
118111
public List<State> retrieveStateCatalog(ApiConnectionInfo apiConnectionInfo) throws IOException {
119112
HttpRequestExecutor executor = new HttpRequestBuilderImpl(apiConnectionInfo, CATALOG_STATE_ENDPOINT)
120113
.addEndpointInput(new StateCatalogEndpointInput())
121-
.get()
122-
.withMediaType(ACCEPT_HEADER_V2);
114+
.get();
123115
try (HttpRequestResponse response = executor.execute()) {
124116
return RadarObjectMapper.mapJsonToListOfObjects(response.getBody(), State.class);
125117
}

0 commit comments

Comments
 (0)