Hi Aslak,
The easiest way to do this is probably by modifying the HtmlUnit
driver's webclient's WebConnection. Or, in code:
@Override
protected WebClient modifyWebClient(WebClient client) {
WebConnection conn = new YourWebConnection();
client.setWebConnection(mockWebConnection);
return client;
}
You've then got the choice of whether you want to implement a custom
listener in Jetty or just hook directly into your web framework of
choice (Grails, in this case)
TBH, on a modern OS with proper handling of the loopback interface,
I'm not sure how much overhead you'll be saving. It'd be interesting
to find out.
Regards,
Simon
On Mon, Oct 26, 2009 at 8:22 PM, Aslak Hellesøy
- Show quoted text -