Package com.inrupt.client.webid


package com.inrupt.client.webid

WebID Profile support for the Inrupt Java Client Libraries.

This module contains a BodyHandler which consumes the actual response body bytes and converts them into a WebIdProfile Java object.

The following example reads a Solid WebID profile and presents it as a WebIdProfile Java object:


        try (final WebIdProfile profile = client.read(URI.create("https://id.example/username"), WebIdProfile.class)) {
            System.out.println("WebID URI: " + profile.getIdentifier());
            for (final URI type : profile.getType()) {
                System.out.println("WebID Types: " + type);
            }
        }
 
  • Class
    Description
    A runtime exception for use with WebId-related errors.
    A WebID Profile for use with Solid.