Class AbstractDecoderDbAccess
- java.lang.Object
-
- org.bidib.jbidibc.decoder.decoderdb.AbstractDecoderDbAccess
-
- Direct Known Subclasses:
DecoderDetectionAccess,DecoderFirmwareDefinitionAccess,ManufacturerAccess
public abstract class AbstractDecoderDbAccess extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractDecoderDbAccess.DataFormat
-
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 Concrete Methods Modifier and Type Method Description static <T> Tfetch(String login, char[] password, String urlPath, Class<T> responseType, AbstractDecoderDbAccess.DataFormat format)Fetch the data from the decoderDB.static <T> Tfetch(String login, char[] password, String urlPath, Function<String,T> mapper)Fetch the data from the decoderDB.
-
-
-
Field Detail
-
REST_SERVICE_URI
protected static final String REST_SERVICE_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
fetch
public static <T> T fetch(String login, char[] password, String urlPath, Class<T> responseType, AbstractDecoderDbAccess.DataFormat format)
Fetch the data from the decoderDB.- Parameters:
login- the login namepassword- the passwordurlPath- the path- Returns:
- the fetched instance
- Throws:
URISyntaxExceptionMalformedURLException
-
fetch
public static <T> T fetch(String login, char[] password, String urlPath, Function<String,T> mapper)
Fetch the data from the decoderDB.- Parameters:
login- the login namepassword- the passwordurlPath- the path- Returns:
- the fetched instance
- Throws:
URISyntaxExceptionMalformedURLException
-
-