/** * Convenience method to invoke the request using <code>GET</code> method and receive a response entity payload * of {@link List} type back. * @param <T> Response entity type * @param responseType Expected {@link List} response type * @return the response payload of expected type as the result of the request invocation, or an empty List if * not present * @throws HttpClientInvocationException Internal invocation failure (for example, an I/O error on communication * channel or expected and actual payload type mismatch) * @throws UnsuccessfulResponseException In case the status code of the response returned by the server is not a * successful type status code, i.e. it is not a <code>2xx</code> status code */ @Override default <T> List<T> getAsList(Class<T> responseType) { final ResponseType<List<T>> rt = ResponseType.of(responseType, List.class); return getForEntity(rt).orElse(Collections.emptyList()); }