feature/undertow #4
2 changed files with 60 additions and 9 deletions
59
pom.xml
59
pom.xml
|
@ -12,20 +12,41 @@
|
||||||
<groupId>ch.fritteli.labyrinth</groupId>
|
<groupId>ch.fritteli.labyrinth</groupId>
|
||||||
<artifactId>labyrinth-server</artifactId>
|
<artifactId>labyrinth-server</artifactId>
|
||||||
<version>0.0.2-SNAPSHOT</version>
|
<version>0.0.2-SNAPSHOT</version>
|
||||||
|
<description>The Labyrinth server, offering a ReST endpoint to access the Labyrinth Generator.</description>
|
||||||
|
<url>https://manuel.friedli.info/labyrinth.html</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<logback.version>1.4.6</logback.version>
|
|
||||||
<lombok.version>1.18.26</lombok.version>
|
|
||||||
<slf4j.version>2.0.5</slf4j.version>
|
|
||||||
<java.source.version>17</java.source.version>
|
<java.source.version>17</java.source.version>
|
||||||
<java.target.version>17</java.target.version>
|
<java.target.version>17</java.target.version>
|
||||||
|
<jetbrains-annotations.version>24.0.1</jetbrains-annotations.version>
|
||||||
|
<junit-jupiter.version>5.9.2</junit-jupiter.version>
|
||||||
|
<logback.version>1.4.6</logback.version>
|
||||||
|
<lombok.version>1.18.26</lombok.version>
|
||||||
|
<slf4j.version>2.0.7</slf4j.version>
|
||||||
|
<vavr.version>0.10.4</vavr.version>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<name>Manuel Friedli</name>
|
||||||
|
<id>manuel</id>
|
||||||
|
<url>https://www.fritteli.ch/</url>
|
||||||
|
<email>manuel@fritteli.ch</email>
|
||||||
|
<timezone>Europe/Zurich</timezone>
|
||||||
|
<roles>
|
||||||
|
<role>Project Lead</role>
|
||||||
|
<role>Software Architect</role>
|
||||||
|
<role>Software Engineer</role>
|
||||||
|
<role>Operations Manager</role>
|
||||||
|
</roles>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ch.fritteli.labyrinth</groupId>
|
<groupId>ch.fritteli.labyrinth</groupId>
|
||||||
<artifactId>labyrinth-generator</artifactId>
|
<artifactId>labyrinth-generator</artifactId>
|
||||||
<version>0.0.2</version>
|
<version>0.0.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.vavr</groupId>
|
<groupId>io.vavr</groupId>
|
||||||
|
@ -65,7 +86,7 @@
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
<version>3.2.4</version>
|
<version>3.4.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<transformers>
|
<transformers>
|
||||||
<transformer
|
<transformer
|
||||||
|
@ -73,6 +94,14 @@
|
||||||
<mainClass>ch.fritteli.labyrinth.server.Main</mainClass>
|
<mainClass>ch.fritteli.labyrinth.server.Main</mainClass>
|
||||||
</transformer>
|
</transformer>
|
||||||
</transformers>
|
</transformers>
|
||||||
|
<filters>
|
||||||
|
<filter>
|
||||||
|
<artifact>ch.fritteli.labyrinth:labyrinth-generator</artifact>
|
||||||
|
<excludes>
|
||||||
|
<exclude>logback.xml</exclude>
|
||||||
|
</excludes>
|
||||||
|
</filter>
|
||||||
|
</filters>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
@ -83,10 +112,28 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-source-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>attach-sources</id>
|
||||||
|
<phase>verify</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar-no-fork</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
|
<version>4.0.0-M6</version>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<scm>
|
<scm>
|
||||||
<connection>scm:git:git://gittr.ch/java/labyrinth-server.git</connection>
|
<connection>scm:git:https://gittr.ch/java/labyrinth-server.git</connection>
|
||||||
<developerConnection>scm:git:ssh://git@gittr.ch/java/labyrinth-server.git</developerConnection>
|
<developerConnection>scm:git:ssh://git@gittr.ch/java/labyrinth-server.git</developerConnection>
|
||||||
<url>https://gittr.ch/java/labyrinth-server</url>
|
<url>https://gittr.ch/java/labyrinth-server</url>
|
||||||
<tag>HEAD</tag>
|
<tag>HEAD</tag>
|
||||||
|
|
|
@ -8,13 +8,18 @@ import io.undertow.util.HttpString;
|
||||||
import io.undertow.util.StatusCodes;
|
import io.undertow.util.StatusCodes;
|
||||||
import io.vavr.Tuple;
|
import io.vavr.Tuple;
|
||||||
import io.vavr.Tuple2;
|
import io.vavr.Tuple2;
|
||||||
import io.vavr.collection.*;
|
import io.vavr.collection.HashMap;
|
||||||
|
import io.vavr.collection.HashMultimap;
|
||||||
|
import io.vavr.collection.HashSet;
|
||||||
|
import io.vavr.collection.List;
|
||||||
|
import io.vavr.collection.Multimap;
|
||||||
|
import io.vavr.collection.Set;
|
||||||
|
import io.vavr.collection.Stream;
|
||||||
import io.vavr.control.Option;
|
import io.vavr.control.Option;
|
||||||
import io.vavr.control.Try;
|
import io.vavr.control.Try;
|
||||||
import lombok.NonNull;
|
import lombok.NonNull;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.slf4j.MDC;
|
|
||||||
|
|
||||||
import java.nio.ByteBuffer;
|
import java.nio.ByteBuffer;
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
|
@ -22,7 +27,6 @@ import java.time.temporal.ChronoUnit;
|
||||||
import java.util.Deque;
|
import java.util.Deque;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class CreateHandler extends AbstractHttpHandler {
|
public class CreateHandler extends AbstractHttpHandler {
|
||||||
|
|
Loading…
Reference in a new issue