Class ModifyRequestBuilder.Typed

    • Constructor Detail

      • Typed

        public Typed​(javax.ws.rs.client.WebTarget target)
        Create a new generic modify request builder.
        Parameters:
        target - The WebTarget to PATCH.
    • Method Detail

      • ifMatch

        public ModifyRequestBuilder.Typed ifMatch​(String version)
        Modify the resource only if the resource has not been modified since the provided version.
        Parameters:
        version - The version of the resource to compare.
        Returns:
        This builder.
      • invoke

        public <T> T invoke​(Class<T> cls)
                     throws com.unboundid.scim2.common.exceptions.ScimException
        Invoke the SCIM modify request.
        Type Parameters:
        T - 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.