Factory
class Factory(tokenProvider: AkamaiTokenProvider = AkamaiTokenProvider(), defaultDataSourceFactory: DataSource.Factory = DefaultHttpDataSource.Factory()) : DataSource.Factory
A factory for creating instances of AkamaiTokenDataSource.
Parameters
tokenProvider
The AkamaiTokenProvider for generating tokens.
defaultDataSourceFactory
The underlying DataSource to handle the request, by default DefaultHttpDataSource.
Constructors
Link copied to clipboard
constructor(tokenProvider: AkamaiTokenProvider = AkamaiTokenProvider(), defaultDataSourceFactory: DataSource.Factory = DefaultHttpDataSource.Factory())