In my current scenario I need to retrieve the client's IP from the X-Forwarded-For header.
I could override the Application.createRequestResponseFactory() method, create my custom RequestResponseFactory and in it create my instance that inherits from the Request class, overriding the getClientIp() method, but the Request class is final.