public abstract class AbstractContainerClient extends AbstractClient
Abstract class which specifies how methods by container clients (a client that has sub-clients) should operate.
Modifier | Constructor and Description |
---|---|
protected |
AbstractContainerClient()
Default constructor.
|
protected |
AbstractContainerClient(Locale locale)
Overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addClient(String key,
AbstractClient client)
Add a sub-client to this client.
|
AbstractClient |
getClient(String key)
Get a sub-client from this client.
|
void |
setLocale(Locale locale)
Set the
Locale for all sub-clients. |
doGetRequest, doPostRequest, getLocale, getLocalizationLocale, getResponseModels, getResponseModels, getRootUrl, getUrl, setLocalizationLocale
protected AbstractContainerClient()
Default constructor.
protected AbstractContainerClient(Locale locale)
Overloaded constructor.
locale
- the Locale
for this clientpublic final void setLocale(Locale locale)
Set the Locale
for all sub-clients.
setLocale
in class AbstractClient
locale
- the Locale
for this clientpublic void addClient(String key, AbstractClient client)
Add a sub-client to this client.
key
- the keyclient
- the clientIllegalArgumentException
- if this
client adds itself as a sub-client, such that the
expression this == client
is truepublic AbstractClient getClient(String key)
Get a sub-client from this client.
key
- the keyCopyright © 2017. All rights reserved.