Enable request logging in Jetty 9.1

Today I wanted to have a more detailed look into the requests coming into one of my applications using Eclipse Jetty. While it is easy enough to see incoming requests by enabling logging for class org.eclipse.jetty.server.Server (via the standard java logging API or SLF4J), adding a method to log incoming request headers is on a different level. After digging around in the documentation and the sourcecode for a while, this is what I came up with:...

02. November 2017 · Carsten

Glacieruploader command-line tool is available via maven central

A couple of days ago I decided to upload my command-line client for Amazon Glacier to Maven central. I had to do some preparation and clean up, but as of today the modules and the client itself is available at https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22de.kopis.glacier%22. If you just want the client, go ahead and download the glacieruploader-impl using the jar-with-dependencies from https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22glacieruploader-impl%22. For all the other modules I’ll add more documentation in the upcoming days....

28. August 2016 · Carsten

Adding Glacieruploader to Maven central

A couple of days ago I got a request to provide submodules for my Amazon Glacier commandline application glacieruploader. I’ve never done that before, but I learn about how to do it. The OP of the request kindly provided a couple of links to documentation: http://www.sonatype.org/nexus/2015/04/28/how-to-publish-your-open-source-library-to-maven-central/ http://central.sonatype.org/pages/apache-maven.html https://maven.apache.org/plugins/maven-deploy-plugin/ After reading up and searching I also added some more links: https://maven.apache.org/guides/mini/guide-central-repository-upload.html https://www.apache.org/dev/publishing-maven-artifacts.html http://central.sonatype.org/pages/choosing-your-coordinates.html At the moment I’m reading the official documentation of Sonatype and setting everything up to deploy my first project to maven central....

26. August 2016 · Carsten

Javadoc FTW!?

Heute bin ich über ein gutes Beispiel gestolpert, wieso ich Javadoc mittlerweile ablehne und nur noch auf öffentlichen APIs haben will: Alles drin was man sich so wünscht: Supergenerischer erster Satz Fehlende Beschreibung Hinweis auf mind. verbesserungswürdige Funktionalität (oder Bug?) zur Abrundung noch ein Schreibfehler vermutlich autogenerierte @version Annotation Sowas kann man getrost weglassen.

16. Oktober 2014 · Carsten

Mein erster Java 8 Stream

Heute habe ich mich mal in Java 8 eingelesen und mir dafür als erstes die Stream API vorgenommen. Wenn Du noch nie etwas davon gehört hast, hilft Dir vielleicht mein Junit Test, den ich als allererste Klasse mit Sprachelementen aus Java 8 geschrieben habe. Von dort aus sind die ersten Links in die Stream API gemacht und Du solltest ein paar Punkte zum Weiterlesen haben. import org.junit.Before; import org.junit.Test; import java....

19. August 2014 · Carsten