public class CrestEndpointFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getEndpoint(String url,
String username,
String password,
Class<T> endpointClass)
Constructs a new CRest endpoint, caches it and returns it for use.
|
static CrestEndpointFactory |
getInstance() |
<T> T |
getTestlabEndpoint(String companyId,
String onpremiseUrl,
String apiKey,
Class<T> endpointClass)
Returns an endpoint to Testlab.
|
public static CrestEndpointFactory getInstance()
public <T> T getEndpoint(String url, String username, String password, Class<T> endpointClass)
url - username - password - public <T> T getTestlabEndpoint(String companyId, String onpremiseUrl, String apiKey, Class<T> endpointClass)
T - companyId - apiKey - endpointClass - Copyright © 2004-2014. All Rights Reserved.