Class CreateRequestBuilder<T extends com.unboundid.scim2.common.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 com.unboundid.scim2.common.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(javax.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 T
invoke()
Invoke the SCIM create request.<C> C
invoke(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(javax.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.- Parameters:
target
- The WebTarget to POST to.resource
- The SCIM resource to POST.
-
-
Method Detail
-
invoke
public T invoke() throws com.unboundid.scim2.common.exceptions.ScimException
Invoke the SCIM create request.- Returns:
- The successfully create SCIM resource.
- Throws:
com.unboundid.scim2.common.exceptions.ScimException
- If an error occurred.
-
invoke
public <C> C invoke(Class<C> cls) throws com.unboundid.scim2.common.exceptions.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:
javax.ws.rs.ProcessingException
- If a JAX-RS runtime exception occurred.com.unboundid.scim2.common.exceptions.ScimException
- If the SCIM service provider responded with an error.
-
-