Improve Your Spring REST API, Part II
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...
View ArticleWhat you may not know about HTTP redirects
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...
View ArticleImprove Your Spring REST API, Part III
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 […] The post Improve...
View ArticleVolley, networking for android.
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 […] The...
View ArticleImprove Your Spring REST API, Part IV
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....
View ArticleAsync Servlets
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 […] The post...
View ArticleSpring Boot Error Responses
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 […] The...
View ArticleCreating an API for a Rock-paper-scissors Game – using ASP.NET Web Api
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 […]...
View ArticleScaling out with Spring Session
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...
View ArticleGzipping 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 9.3 and perhaps you […] The post...
View Article