문제

I'm trying to intercept the http calls which are generated during page loading. In other words, I would to realize a network traffic analyzer like the Firefox Firebug Net Panel.

Is it possible in Javafx?

Thanks.

도움이 되었습니까?

해결책

Call URL.setURLStreamHandlerFactory

Read A new era for Java Protocol Handlers to understand the background for this.

Answer assumes you are using the standard WebView implementation or the java.net.URL class for networking and not some custom method.

A code sample for this would take me some time. The recommended approach is to follow the instructions provided in my answer. I'll put together a code sample in a few days if I have time and the question asker or nobody else has provided a sample.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top