开发者

reading address bar of browser using java

I want to generate a complete record of all the urls visited in a sessi开发者_如何学编程on using java. How to do that?


Practical approach - use wireshark to record the complete traffic to a logfile and write a Java application that reads the file and extracts all URLs.

You may have to filter the result list to limit the URLs to the URLs actually entered in an address bar. Otherwise you'll get the full list, including referenced URLs from loaded documents.


if we talk about server-side programming, than (if you use jsf/spring_webflow, know only these two) you could try to put listeners in it, so every request will leave it's url in some kind of Collecion.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜