public interface OslcClientFactory
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
OslcClient |
create()
Instantiates an OslcClient.
|
OslcClientFactory |
header(String name,
String value)
Assigns a default header to inject on every request executed by the OslcClient created with this factory.
|
OslcClientFactory |
locale(Enumeration<Locale> locales)
Informs the factory of the preferred locales, in case error messages shall be generated.
|
OslcClientFactory |
locale(Locale... locales)
Informs the factory of the preferred locales, in case error messages shall be generated.
|
OslcClient create()
OslcClientFactory header(String name, String value)
name
- the header name.value
- the header value (the header is ignored if the value is null
or empty)OslcClientFactory locale(Locale... locales)
locales
- the locales, in order of preferenceOslcClientFactory locale(Enumeration<Locale> locales)
locales
- the locales, in order of preference