Custom JavaFX WebView Protocol Handler

后端 未结 3 603
孤街浪徒
孤街浪徒 2020-12-18 10:43

I am trying to write my own protocol handler for a JavaFX application that uses webview to access a single website. What I have done so far

My custom URLStreamHandle

3条回答
  •  醉梦人生
    2020-12-18 11:10

    This is not directly related to the question asked, but might make the question itself obsolete.

    With Java SE 6 Update 10 Java Applets support to access resources on any domain and port which is correctly set up with a crossdomain.xml.

    With this the reason to register your own protocol might become obsolete, as you can access all resources that you need.

    Another idea is: If you are trying to create a kind of network sniffer, why not directly use a network sniffer/analyzer program designed for such a task?

提交回复
热议问题