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
ConstructorsConstructorDescriptionListServerResponse(HttpResponse httpResponse, boolean expectedResponseCode, Class<ListResponse<T>> type, Class<T> responseEntityType, Function<HttpResponse, Boolean> isResponseParseable, Map<String, String> requiredResponseHeaders) -
Method Summary
Modifier and TypeMethodDescription<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 typeMethods inherited from class de.captaingoldfish.scim.sdk.client.response.ServerResponse
getErrorResponse, getHttpHeaders, getHttpStatus, getRequiredResponseHeaders, getResource, getResponseBody, getType, isSuccess, isValidScimResponse
-
Constructor Details
-
ListServerResponse
public ListServerResponse(HttpResponse httpResponse, boolean expectedResponseCode, Class<ListResponse<T>> type, Class<T> responseEntityType, Function<HttpResponse, Boolean> isResponseParseable, Map<String, String> requiredResponseHeaders)
-
-
Method Details
-
getResource
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
-