Package com.inrupt.client.solid
Class SolidClient.Builder
java.lang.Object
com.inrupt.client.solid.SolidClient.Builder
- Enclosing class:
- SolidClient
A builder class for a
SolidClient
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build theSolidClient
.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
SolidClient.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 theSolidClient
.- Returns:
- the Solid client
-