Package com.inrupt.client.solid
Class SolidSyncClient.Builder
java.lang.Object
com.inrupt.client.solid.SolidSyncClient.Builder
- Enclosing class:
- SolidSyncClient
A builder class for a
SolidSyncClient
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theSolidSyncClient
.Set a pre-configuredClient
.fetchAfterWrite
(boolean fetch) Set whether to fetch a resource after a write operation.Set a collection of headers to be used with each high-level client request.
-
Method Details
-
client
Set a pre-configuredClient
.- Parameters:
client
- the client- Returns:
- this builder
-
headers
Set a collection of headers to be used with each high-level client request.Note that any headers set here will not be automatically added to any requests performed by the
SolidSyncClient.send(com.inrupt.client.Request, com.inrupt.client.Response.BodyHandler<T>)
method.- Parameters:
headers
- the headers- Returns:
- this builder
-
fetchAfterWrite
Set whether to fetch a resource after a write operation.- Parameters:
fetch
- whether to fetch the remote resource after a write operation- Returns:
- this builder
-
build
Build theSolidSyncClient
.- Returns:
- the Solid client
-