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 9.3 and perhaps you […]
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 for improved security. When […]
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 domain was created using […]
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 take a look at […]
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 3.0 was the possibility […]
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 end of this year. […]
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 in most cases we […]
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 why a request error […]
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 user to a login […]
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 implementation does not scale, […]
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 help your client developers […]
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. To address this I […]