https://github.com/davidgfolch/schibstedwebapptest
Schibsted Webapp Test with com.sun.net.httpserver
https://github.com/davidgfolch/schibstedwebapptest
dependency-injection framework-agnostic functional-programming httpserver java-8 rxjava2 webapp
Last synced: 2 months ago
JSON representation
Schibsted Webapp Test with com.sun.net.httpserver
- Host: GitHub
- URL: https://github.com/davidgfolch/schibstedwebapptest
- Owner: davidgfolch
- Created: 2017-01-28T08:04:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-16T09:22:44.000Z (over 2 years ago)
- Last Synced: 2025-01-23T05:45:37.514Z (4 months ago)
- Topics: dependency-injection, framework-agnostic, functional-programming, httpserver, java-8, rxjava2, webapp
- Language: Java
- Homepage:
- Size: 192 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Schibsted web-app test
## How to run
### Run with logs (using maven-assembly-plugin)
mvn clean package
java -jar target/webapp-0.0.1-SNAPSHOT-jar-with-dependencies.jar#### With colored output (perl required)
./run.sh
That is the same as:mvn clean package | perl colorTail.pl
java -jar target/webapp-0.0.1-SNAPSHOT-jar-with-dependencies.jar | perl colorTail.pl### Quick run (using exec-maven-plugin)
mvn exec:java## Technical description
Server configuration via annotations, handlers can be overrided in server.properties
Using filters (com.sun.net.httpserver.Filter): see [AuthFilter](./src/main/java/com/schibsted/webapp/server/filter/AuthFilter.java) & [ParamsFilter](./src/main/java/com/schibsted/webapp/server/filter/ParamsFilter.java) implementations.
MVCHandler implementation
Using Apache org.apache.httpcomponents.httpclient to parse params and response status constants.
Using Apache log4j2 as default logger.
Using Apache log4j2 JUL bridge to log httpserver logs.
Using jtwig for templates.## Sonar build via Travis
I've set a sonar build via Travis, you can see the [dashboard here](https://sonarcloud.io/dashboard?id=davidgfolch_SchibstedWebappTest)