我为KNIME(一种基于eclipse的软件)编写了一个REST客户端插件。我已经使用球衣作为图书馆。在使用球衣的eclipse扩展插件中抑制Applet Alert
一切工作正常。但是,如果我发送客户端请求,弹出一个APPLET ALERT对话框,询问我是否允许,禁止或停止该小程序。这个对话很烦人,特别是如果你想提交多个请求。 我该如何摆脱它?
到目前为止,我发现的所有反病毒软件都是在下载过程中将东西添加到.jar文件,调整maven服务器和ant构建的参数。然而,我在我的机器上创建了这个插件,我在本地运行目标REST服务器(它基于python)。
理想情况下,我想知道如何在代码或插件设置中或通过首选项抑制此插件。如果这是不可能的,我会需要一个解决方法,也可以解释给我们公司以外的用户,因为插件即将发布。由代码线
client.handle(请求)
具有客户机是一个Jersey客户端和请求为球衣的ClientRequest创建
的对话框。
控制台输出
-- PolicyProps uninitialized on access of 'jscan.session.policyname
-- PolicyProps uninitialized on access of 'jscan.session.origin_uri'
-- PolicyProps uninitialized on access of 'misc.no_user_interaction'
-- PolicyProps uninitialized on access of 'misc.prompt_user'
-- PolicyProps uninitialized on access of 'misc.notify_user'
-- PolicyProps uninitialized on access of 'misc.max_offense_cnt'
-- PolicyProps uninitialized on access of 'misc.strict_enforcement'
-- PolicyProps uninitialized on access of 'jscan.session.origin_uri'
-- PolicyProps uninitialized on access of 'net.bind_enable'
-- PolicyProps uninitialized on access of 'net.connect_src'
-- PolicyProps uninitialized on access of 'net.connect_other'
-- PolicyProps uninitialized on access of 'net.connect_in_dom_list'
Msgs: Failed to find localized message for key "instr.action.connect" - using default English form
Msgs: Failed to find localized message for key "instr.msg.dialog.action_warning_start" - using default English form
-->> returning Frame NULL
Msgs: Failed to find localized message for key "instr.dialog.title.applet_alert" - using default English form
Msgs: Failed to find localized message for key "instr.button.allow" - using default English form
Msgs: Failed to find localized message for key "instr.button.disallow" - using default English form
Msgs: Failed to find localized message for key "instr.button.stop_applet" - using default English form
BaseDialog: owner frame is a java.awt.Frame