Gzipping in Pedestal + Jetty 9.3
There is a sample in the Pedestal repo for how to get responses gzip compressed by using the GzipFilter from Jetty 9.2. This filter has, however, been removed in Jetty…
There is a sample in the Pedestal repo for how to get responses gzip compressed by using the GzipFilter from Jetty 9.2. This filter has, however, been removed in Jetty…
Stateless architecture has become increasingly popular during resent years and for good reasons. However, stateful session based applications continue to play an important role, for example when issuing CSRF tokens…
Introduction In earlier posts we often used the domain for a simple rock-papers-scissors game. In this post we're going to re-use the domain and create an HTTP API. The RPS…
I have written about Spring's support for web response error handling a few times before (e.g. about custom error responses and how they can be generalized). This time, we will…
It is now about four and a half years since the Servlet 3.0 specification was released in December 2009, together with Java EE 6. One feature that came in Servlet…
Spring 4 is around the corner. Milestone releases has been available for a while, the first release candidate was released earlier today, and the final release is expected before the…
This post is outdated and I urge you to go have a look at the official google training material instead. Most projects I have worked on needed some sort of network engine, and…
Some time ago, I wrote about how the error response of a Spring based REST API can be enhanced, in order to provide the clients with a better understanding of…
Yesterday we wrote some integration tests using the REST Assured framework to verify URL authorization for our web application configured with Spring Security. Spring Security is configured to redirect the…
In the previous blog post, I explained how a custom @ExceptionHandler can be used to return feedback to REST API clients when they are submitting erroneous requests. However, the suggested…
After watching Jonathan Dahl's presentation about API design from the Øredev conference last year, especially the parts about Smart Validations, it is apparent that you can do much more to…
From a client perspective it has always seemed to me that uploading a large file or stream to a server using multi-part form data encoding in Java is overly complex.…