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 <T1 extends ScimResponse> |
buildScimResponse(int httpResponseCode,
String responseBody)
builds the scim response from the response body
|
protected abstract org.apache.http.client.methods.HttpUriRequest |
getHttpUriRequest()
builds the request for the server
|
ScimServerResponse<T> |
sendRequest()
sends the defined request to the service provider
|
ScimServerResponse<T> |
sendRequest(Map<String,String[]> httpHeaders)
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 providerpublic ScimServerResponse<T> sendRequest()
public ScimServerResponse<T> sendRequest(Map<String,String[]> httpHeaders)
httpHeaders - allows the user to add additional http headers to the requestprotected abstract <T1 extends ScimResponse> T1 buildScimResponse(int httpResponseCode, String responseBody)
httpResponseCode - the response code of the responseresponseBody - the response body of the serverprotected abstract org.apache.http.client.methods.HttpUriRequest getHttpUriRequest()
Copyright © 2020. All rights reserved.