(AppBase app)
| 61 | } |
| 62 | |
| 63 | @Override |
| 64 | public void Initialize(AppBase app) throws Exception { |
| 65 | logger.debug("start db web"); |
| 66 | super.Initialize(app); |
| 67 | zeze = app.getZeze(); |
| 68 | |
| 69 | try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream("DbWebIndex.html")) { |
| 70 | if (inputStream != null) { |
| 71 | try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8))) { |
| 72 | indexHtml = reader.lines().collect(Collectors.joining("\n")); |
| 73 | } |
| 74 | } else { |
| 75 | logger.info("DbWebIndex.html not found"); |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | public void SetIndexHtml(String indexHtml) { |
| 81 | Objects.requireNonNull(indexHtml); |
nothing calls this directly
no test coverage detected