REST サービスからエンティティを取得しようとしています。私のコードは次のようなものです:
次のようなオブジェクトを送信したい:new GenericType<List<MyObject>>() {}
このようなメソッドに:
public static Object callRestWithUrl(String url, Class<?> responseObject)
throws MetaServiceException {
ClientResponse response = RESTConnectionUtils.callMetaService(url);
result = response.getEntity(responseObject);
.....
ただし、実行時に GenericType ではなく List に評価され、例外がスローされます。