This is a filter that injects javascript code to the top head portion and after the body so that the time can me measured what the client parse time was for this page. It also reports the total server parse/response time in the client and logs the server response time and response size it took for a specific response in the server log. You can specify what the status text should be like this: ServerAndClientTimeFilter.statustext=My Application, Server parsetime: ${servertime}, Client parsetime: ${clienttime}
Usage: in YourApplication.java:
@Override public init() { super.init(); getRequestCycleSettings().addResponseFilter(new ServerAndClientTimeFilter()); }
@author jcompagner