Class CreateRequestBuilder<T extends com.unboundid.scim2.common.ScimResource>

    • 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.