public class OpacApiFactory
extends java.lang.Object
OpacApi
instances.Modifier | Constructor and Description |
---|---|
protected |
OpacApiFactory() |
Modifier and Type | Method and Description |
---|---|
static OpacApi |
create(Library lib,
java.lang.String userAgent)
|
static OpacApi |
create(Library lib,
StringProvider sp,
HttpClientFactory hcf,
java.lang.String lang)
|
public static OpacApi create(Library lib, java.lang.String userAgent)
OpacApi
instance for accessing the given Library
. This method will
use a DummyStringProvider
(not provide any human-readable error messages), the
default HttpClientFactory
with the User-Agent "libopac" and provide results in the
library's default language.public static OpacApi create(Library lib, StringProvider sp, HttpClientFactory hcf, java.lang.String lang)
lib
- the Library
you want to connect tosp
- the StringProvider
to usehcf
- the HttpClientFactory
to uselang
- the preferred language as a ISO-639-1 code, see OpacApi.setLanguage(String)
OpacApi
instance