Class SaiSession

java.lang.Object
com.janeirodigital.sai.core.sessions.SaiSession

public class SaiSession extends Object
Base factory providing builders for many of the core data models defined by the Solid Application Interoperability specification.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    okhttp3.OkHttpClient
    Get an OkHttpClient from the HttpClientFactory based on the default configuration provided when the client factory was initialized.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 - Initialized HttpClientFactory
      authorizedSession - AuthorizedSession with credentials used for access to protected resources
  • Method Details

    • getHttpClient

      public okhttp3.OkHttpClient getHttpClient() throws SaiException
      Get an OkHttpClient from the HttpClientFactory based on the default configuration provided when the client factory was initialized.
      Returns:
      OkHttpClient
      Throws:
      SaiException