Class ListBuilder.ListServerResponse<T extends ResourceNode>
- java.lang.Object
-
- de.captaingoldfish.scim.sdk.client.response.ServerResponse<ListResponse<T>>
-
- de.captaingoldfish.scim.sdk.client.builder.ListBuilder.ListServerResponse<T>
-
- Enclosing class:
- ListBuilder<T extends ResourceNode>
public static class ListBuilder.ListServerResponse<T extends ResourceNode> extends ServerResponse<ListResponse<T>>
overrides the translation of the returned resource from the server
-
-
Constructor Summary
Constructors Constructor Description ListServerResponse(HttpResponse httpResponse, boolean expectedResponseCode, Class<ListResponse<T>> type, Class<T> responseEntityType, Function<HttpResponse,Boolean> isResponseParseable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R extends ScimObjectNode>
RgetResource(Class<R> responseType)translates the response body into a list response and parses then all json nodes within the resource into objects of the given resource node type-
Methods inherited from class de.captaingoldfish.scim.sdk.client.response.ServerResponse
getErrorResponse, getHttpHeaders, getHttpStatus, getResource, getResponseBody, getType, isSuccess, isValidScimResponse
-
-
-
-
Constructor Detail
-
ListServerResponse
public ListServerResponse(HttpResponse httpResponse, boolean expectedResponseCode, Class<ListResponse<T>> type, Class<T> responseEntityType, Function<HttpResponse,Boolean> isResponseParseable)
-
-
Method Detail
-
getResource
public <R extends ScimObjectNode> R getResource(Class<R> responseType)
translates the response body into a list response and parses then all json nodes within the resource into objects of the given resource node type- Overrides:
getResourcein classServerResponse<ListResponse<T extends ResourceNode>>- Parameters:
responseType- the type of the node which might be of typeUser,Group- Returns:
- a list response with resources of type R
-
-