#11 jdk11 support

This commit is contained in:
Penski, Andreas 2019-03-06 14:26:05 +01:00
parent 248f460500
commit 70149817bf
17 changed files with 391 additions and 149 deletions

View file

@ -50,7 +50,7 @@ import net.sf.saxon.s9api.XdmNode;
*/
@Slf4j
@RequiredArgsConstructor
public class CheckAssertionAction implements CheckAction {
class CheckAssertionAction implements CheckAction {
private final Assertions assertions;

View file

@ -135,7 +135,7 @@ public class CommandLineApplication {
printHelp(options);
}
}
return 0;
return returnValue;
}
private static int determinePort(CommandLine cmd) {

View file

@ -68,6 +68,7 @@ class Daemon {
@Override
public void handle(HttpExchange httpExchange) throws IOException {
try {
log.debug("Incoming request");
String requestMethod = httpExchange.getRequestMethod();
if (requestMethod.equals("POST")) {
InputStream inputStream = httpExchange.getRequestBody();
@ -82,7 +83,7 @@ class Daemon {
} else {
writeError(httpExchange, 405, "Es ist nur die POST-Methode erlaubt!");
}
} catch (TransformerException e) {
} catch (Exception e) {
writeError(httpExchange, 500, "Interner Fehler bei der Verarbeitung des Requests: " + e.getMessage());
log.error("Es ist ein Fehler aufgetreten. Das Dokument kann nicht geprüft werden", e);
}
@ -189,7 +190,7 @@ class Daemon {
server.createContext("/health", new HealthHandler(check.getRepository().getScenarios()));
server.setExecutor(Executors.newFixedThreadPool(threadCount));
server.start();
log.info("Server ist erfolgreich gestartet");
log.info("Server unter Port {} ist erfolgreich gestartet", port);
} catch (IOException e) {
log.error("Fehler beim HttpServer erstellen!", e.getMessage(), e);
}

View file

@ -44,7 +44,7 @@ import net.sf.saxon.s9api.XdmNode;
*/
@RequiredArgsConstructor
@Slf4j
public class ExtractHtmlContentAction implements CheckAction {
class ExtractHtmlContentAction implements CheckAction {
private static final QName NAME_ATTRIBUTE = new QName("data-report-type");

View file

@ -30,7 +30,7 @@ import lombok.extern.slf4j.Slf4j;
* @author Andreas Penski
*/
@Slf4j
public class PrintMemoryStats implements de.kosit.validationtool.impl.tasks.CheckAction {
class PrintMemoryStats implements de.kosit.validationtool.impl.tasks.CheckAction {
private static final int BYTES_PER_K = 1024;

View file

@ -35,7 +35,7 @@ import net.sf.saxon.s9api.Serializer;
* @author Andreas Penski
*/
@Slf4j
public class PrintReportAction implements CheckAction {
class PrintReportAction implements CheckAction {
@Override
public void check(Bag results) {

View file

@ -37,7 +37,7 @@ import net.sf.saxon.s9api.Serializer;
*/
@Slf4j
@RequiredArgsConstructor
public class SerializeReportAction implements CheckAction {
class SerializeReportAction implements CheckAction {
private final Path outputDirectory;