Class RetrieveRequestBuilder.Typed

    • Constructor Detail

      • Typed

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

      • ifNoneMatch

        public RetrieveRequestBuilder.Typed ifNoneMatch​(String version)
        Retrieve the resource only if the resource has been modified since the provided version. If the resource has not been modified, NotModifiedException will be thrown when calling invoke.
        Parameters:
        version - The version of the resource to compare.
        Returns:
        This builder.
      • invoke

        public <T> T invoke​(Class<T> cls)
                     throws ScimException
        Invoke the SCIM retrieve 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 retrieved SCIM resource.
        Throws:
        jakarta.ws.rs.ProcessingException - If a JAX-RS runtime exception occurred.
        ScimException - If the SCIM service provider responded with an error.