Search code examples
jxbrowser

JXBrowser, intercepting loading of a script, and change it's contents.


I know you can add a LoadAdapter, and implement onStartLoadingFrame

but is it possible to modify the response? IE the content sent to the client. I cant seem to see the responseText anywhere yet to modify it.


Solution

  • You can use CustomProtocolHandler to response with custom data. Please take a loot at the article for details.