我爲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