Class AbstractDecoderDbAccess
- java.lang.Object
-
- org.bidib.jbidibc.decoder.decoderdb.AbstractDecoderDbAccess
-
- Direct Known Subclasses:
DecoderDetectionAccess,DecoderFirmwareDefinitionAccess,ManufacturerAccess
public abstract class AbstractDecoderDbAccess extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringREST_SERVICE_URI
-
Constructor Summary
Constructors Constructor Description AbstractDecoderDbAccess()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.client.RestTemplatecreateRestTemplate(String restServiceUri)<T> Tfetch(String login, char[] password, String baseUrl, String urlPath, Class<T> responseType)Fetch the data from the decoderDB.static ProxyfindProxy(URI uri)
-
-
-
Field Detail
-
REST_SERVICE_URI
protected static final String REST_SERVICE_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
fetch
public <T> T fetch(String login, char[] password, String baseUrl, String urlPath, Class<T> responseType)
Fetch the data from the decoderDB.- Parameters:
login- the login namepassword- the passwordbaseUrl- the service urlurlPath- the path- Returns:
- the fetched instance
- Throws:
URISyntaxExceptionMalformedURLException
-
createRestTemplate
protected org.springframework.web.client.RestTemplate createRestTemplate(String restServiceUri) throws MalformedURLException, URISyntaxException
-
findProxy
public static Proxy findProxy(URI uri) throws URISyntaxException
- Throws:
URISyntaxException
-
-