RequestFilter filter = new RequestFilter() {
public boolean service(Request request, Response response, RequestHandler handler)
throws IOException {
requestGlobals.storeServletRequestResponse(
new MockHttpServletRequest(),
new MockHttpServletResponse());
return handler.service(request, response);
}
};
config.add("SpringMockHttpRequestAndResponse", filter, "after:CheckForUpdates","before:URLRewriter");