public abstract class AbstractDecoderDbAccess extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
REST_SERVICE_URI |
| Constructor and Description |
|---|
AbstractDecoderDbAccess() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.web.client.RestTemplate |
createRestTemplate(String restServiceUri) |
<T> T |
fetch(String login,
char[] password,
String baseUrl,
String urlPath,
Class<T> responseType)
Fetch the data from the decoderDB.
|
protected static final String REST_SERVICE_URI
public <T> T fetch(String login, char[] password, String baseUrl, String urlPath, Class<T> responseType)
login - the login namepassword - the passwordbaseUrl - the service urlurlPath - the pathURISyntaxExceptionMalformedURLExceptionprotected org.springframework.web.client.RestTemplate createRestTemplate(String restServiceUri) throws MalformedURLException, URISyntaxException
Copyright © 2018. All rights reserved.