Class CreateRequestBuilder<T extends ScimResource>
- java.lang.Object
-
- com.unboundid.scim2.client.requests.RequestBuilder<T>
-
- com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder<CreateRequestBuilder<T>>
-
- com.unboundid.scim2.client.requests.CreateRequestBuilder<T>
-
public final class CreateRequestBuilder<T extends ScimResource> extends ResourceReturningRequestBuilder<CreateRequestBuilder<T>>
A builder for SCIM create requests.
-
-
Field Summary
-
Fields inherited from class com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder
attributes, excluded
-
Fields inherited from class com.unboundid.scim2.client.requests.RequestBuilder
headers, queryParams
-
-
Constructor Summary
Constructors Constructor Description CreateRequestBuilder(jakarta.ws.rs.client.WebTarget target, T resource)Create a new SCIM create request builder that will POST the given resource to the given web target.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tinvoke()Invoke the SCIM create request.<C> Cinvoke(Class<C> cls)Invoke the SCIM create request.-
Methods inherited from class com.unboundid.scim2.client.requests.ResourceReturningRequestBuilder
attributes, excludedAttributes
-
Methods inherited from class com.unboundid.scim2.client.requests.RequestBuilder
accept, contentType, getAccept, getContentType, header, queryParam, target
-
-
-
-
Constructor Detail
-
CreateRequestBuilder
public CreateRequestBuilder(@NotNull jakarta.ws.rs.client.WebTarget target, @NotNull T resource)
Create a new SCIM create request builder that will POST the given resource to the given web target.- Parameters:
target- The WebTarget to POST to.resource- The SCIM resource to POST.
-
-
Method Detail
-
invoke
@NotNull public T invoke() throws ScimException
Invoke the SCIM create request.- Returns:
- The successfully create SCIM resource.
- Throws:
ScimException- If an error occurred.
-
invoke
@NotNull public <C> C invoke(@NotNull Class<C> cls) throws ScimException
Invoke the SCIM create request.- Type Parameters:
C- The type of object to return.- Parameters:
cls- The Java class object used to determine the type to return.- Returns:
- The successfully modified SCIM resource.
- Throws:
jakarta.ws.rs.ProcessingException- If a JAX-RS runtime exception occurred.ScimException- If the SCIM service provider responded with an error.
-
-