Class RetrieveRequestBuilder.Generic<T extends ScimResource>

    • Constructor Detail

      • Generic

        public Generic​(jakarta.ws.rs.client.WebTarget target,
                       T resource)
        Create a new generic retrieve request builder.
        Parameters:
        target - The WebTarget to GET.
        resource - The SCIM resource to retrieve.
    • Method Detail

      • ifNoneMatch

        public RetrieveRequestBuilder.Generic<TifNoneMatch()
        Retrieve the resource only if the resource has been modified from the resource provided. If the resource has not been modified, the provided resource will be returned by invoke.
        Returns:
        This builder.
      • invoke

        public T invoke()
                 throws ScimException
        Invoke the SCIM retrieve request.
        Returns:
        The successfully retrieved SCIM resource or the resource provided if the ifNoneMatch method was called and the resource has not been modified.
        Throws:
        ScimException - If an error occurred.
      • invoke

        public <C> C invoke​(Class<C> cls)
                     throws ScimException
        Invoke the SCIM modify 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.