开发者

how to capture http response from Java SWT browser component

Is it posible to capture http response that comping 开发者_开发知识库back from request im making in java SWT browser component ?


Yes, at least if you're using a Mozilla based SWT browser. In that case you could implement a nsIObserver and take a look at the response via the observe() method.

Here's a snippet: http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet321.java?view=co

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜