public abstract class AbstractRestClient extends Object
AbstractRestClient.| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL_PREFIX
The Constant BASE_URL_PREFIX.
|
static String |
DEFAULT_BASE_URL
The Constant DEFAULT_BASE_URL.
|
static int |
DEFAULT_HTTP_PORT
The Constant DEFAULT_HTTP_PORT.
|
| Constructor and Description |
|---|
AbstractRestClient()
Instantiates a new
AbstractRestClient with the default base url. |
AbstractRestClient(String baseUrl)
Instantiates a new
AbstractRestClient. |
| Modifier and Type | Method and Description |
|---|---|
protected List<Object> |
newProviders()
Factory callback method for the list of providers.
|
protected <T> T |
newResource(Class<T> resourceClass)
Generic factory method for create new rest resource for the rest client.
|
public static final int DEFAULT_HTTP_PORT
public static final String BASE_URL_PREFIX
public static final String DEFAULT_BASE_URL
public AbstractRestClient()
AbstractRestClient with the default base url.public AbstractRestClient(String baseUrl)
AbstractRestClient.baseUrl - the base urlprotected List<Object> newProviders()
protected <T> T newResource(Class<T> resourceClass)
T - the generic typeresourceClass - the resource classCopyright © 2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.