Class SaiSession
java.lang.Object
com.janeirodigital.sai.core.sessions.SaiSession
Base factory providing builders for many of the core data models
defined by the
Solid Application Interoperability specification.
-
Constructor Summary
ConstructorsConstructorDescriptionSaiSession
(com.janeirodigital.sai.authentication.AuthorizedSession authorizedSession, HttpClientFactory clientFactory) Initialize a sai session with the provided authorized session and http client, which will be used for subsequent operations by the factory. -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.OkHttpClient
Get an OkHttpClient from theHttpClientFactory
based on the default configuration provided when the client factory was initialized.
-
Constructor Details
-
SaiSession
public SaiSession(com.janeirodigital.sai.authentication.AuthorizedSession authorizedSession, HttpClientFactory clientFactory) Initialize a sai session with the provided authorized session and http client, which will be used for subsequent operations by the factory.- Parameters:
clientFactory
- InitializedHttpClientFactory
authorizedSession
-AuthorizedSession
with credentials used for access to protected resources
-
-
Method Details
-
getHttpClient
Get an OkHttpClient from theHttpClientFactory
based on the default configuration provided when the client factory was initialized.- Returns:
- OkHttpClient
- Throws:
SaiException
-