public abstract class RequestBuilder<T extends ResourceNode> extends Object
| Constructor and Description |
|---|
RequestBuilder(String baseUrl,
ScimClientConfig scimClientConfig,
Class<T> responseEntityType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.http.client.methods.HttpUriRequest |
getHttpUriRequest()
builds the request for the server
|
protected abstract <T extends ScimResponse> |
getResponseType(int responseCode)
each SCIM endpoint must respond with specific response codes in order to acknowledge a request as
successful
|
ScimServerResponse<T> |
sendRequest()
sends the defined request to the service provider
|
protected RequestBuilder<T> |
setEndpoint(String endpoint) |
protected RequestBuilder<T> |
setResource(com.fasterxml.jackson.databind.JsonNode resource) |
protected RequestBuilder<T> |
setResource(String resource) |
public RequestBuilder(String baseUrl, ScimClientConfig scimClientConfig, Class<T> responseEntityType)
protected RequestBuilder<T> setEndpoint(String endpoint)
endpoint - the resource endpoint path e.g. /Users or /Groupsprotected RequestBuilder<T> setResource(String resource)
resource - sets the resource that should be sent to the service providerprotected RequestBuilder<T> setResource(com.fasterxml.jackson.databind.JsonNode resource)
resource - sets the resource that should be sent to the service providerprotected abstract <T extends ScimResponse> Class<T> getResponseType(int responseCode)
responseCode - the response code from the SCIM serviceErrorResponsepublic ScimServerResponse<T> sendRequest()
protected abstract org.apache.http.client.methods.HttpUriRequest getHttpUriRequest()
Copyright © 2020. All rights reserved.