Java page load library
===

I need to write some web page load measuring Java tool with the same functionality as at http://tools.pingdom.com/fpt/ or http://pageload.monitis.com/pagespeed.jsp. I need to measure page and all its embedded elements load time. Tool should have no GUI. 
Is there some Java library for such purpose? If not, what is the solution?