Where is the isAjax() method in Play Framework 2.0?

ajax, playframework-2.0

Solution

If you use JQuery for Ajax, it sets the following Request Header:

 X-Requested-With: XMLHttpRequest

that you can later access to test if a call is done via Ajax or not.

Problem

In Play Framework 1.x, we could quickly know if the request was AJAX or not by asking `request.isAjax()` method, but I can't find it on Play 2. What is the alternative or where is this method?

Original source