Tracking the WebRenderers page
visit history WebRenderer
has a History object that automatically
tracks document navigation. The History
object can be enumerated to find the complete
browsing session history.
The following
code will output all pages visited upon
each page load completion:
browser.addNetworkListener(new
NetworkAdapter() { public
void onDocumentComplete(NetworkEvent e)
{ History
history = browser.getHistory(); System.out.println("History
List Length: " + history.length()); System.out.println("+++
History Block Start +++"); for(int
i = 0; i < history.length(); i++) { System.out.println(history.getPageAt(i).getURL()); } System.out.println("+++
History Block End +++"); } });