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)
T
- typeurl
- urlusername
- user namepassword
- passwordendpointClass
- endpoint classpublic <T> T getTestlabEndpoint(String companyId, String onpremiseUrl, String apiKey, Class<T> endpointClass)
T
- typecompanyId
- company idonpremiseUrl
- onpremise urlapiKey
- api keyendpointClass
- endpoint classCopyright © 2016–2022. All rights reserved.