Package com.inrupt.client.solid
Class SolidSyncClient
java.lang.Object
com.inrupt.client.solid.SolidSyncClient
A high-level synchronous client for interacting with Solid resources.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends Resource>
Tcreate
(T resource) Create a new Solid Resource.void
Delete an existing Solid Resource.<T extends Resource>
voiddelete
(T resource) Delete an existing Solid Resource.static SolidSyncClient
Get theSolidSyncClient
for the current application.static SolidSyncClient.Builder
<T extends Resource>
TRead a Solid Resource into a particular defined type.<T> Response<T>
send
(Request request, Response.BodyHandler<T> responseBodyHandler) Perform a low-level HTTP request.Create a session-scoped client.<T extends Resource>
Tupdate
(T resource) Update an existing Solid Resource.
-
Method Details
-
session
Create a session-scoped client.- Parameters:
session
- the session- Returns:
- a session-scoped client
-
send
Perform a low-level HTTP request.- Type Parameters:
T
- the response handler type- Parameters:
request
- the requestresponseBodyHandler
- the body handler- Returns:
- the response
-
read
Read a Solid Resource into a particular defined type.- Type Parameters:
T
- the resource type- Parameters:
identifier
- the identifierclazz
- the desired resource type- Returns:
- the resource
-
create
Create a new Solid Resource.- Type Parameters:
T
- the resource type- Parameters:
resource
- the resource- Returns:
- the created resource
-
update
Update an existing Solid Resource.- Type Parameters:
T
- the resource type- Parameters:
resource
- the resource- Returns:
- the updated resource
-
delete
Delete an existing Solid Resource.- Parameters:
resource
- the resource URI
-
delete
Delete an existing Solid Resource.- Type Parameters:
T
- the resource type- Parameters:
resource
- the resource
-
getClient
Get theSolidSyncClient
for the current application.- Returns:
- the client instance
-
getClientBuilder
-