Search in sources :

Example 1 with HttpPanelResponse

use of org.zaproxy.zap.extension.httppanel.HttpPanelResponse in project zaproxy by zaproxy.

the class View method getResponsePanel.

@Override
public HttpPanelResponse getResponsePanel() {
    if (responsePanel == null) {
        // ZAP: constructor changed
        responsePanel = new HttpPanelResponse(false, OptionsParamView.BASE_VIEW_KEY + ".main.");
        // ZAP: Added 'left arrow' icon
        responsePanel.setIcon(new ImageIcon(View.class.getResource("/resource/icon/16/106.png")));
        // ZAP: i18n
        responsePanel.setName(Constant.messages.getString("http.panel.response.title"));
        responsePanel.setEnableViewSelect(false);
        responsePanel.loadConfig(Model.getSingleton().getOptionsParam().getConfig());
        responsePanel.setDefaultAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, Toolkit.getDefaultToolkit().getMenuShortcutKeyMask() | Event.ALT_MASK | Event.SHIFT_MASK, false));
        responsePanel.setMnemonic(Constant.messages.getChar("http.panel.response.mnemonic"));
    }
    return responsePanel;
}
Also used : ImageIcon(javax.swing.ImageIcon) HttpPanelResponse(org.zaproxy.zap.extension.httppanel.HttpPanelResponse)

Example 2 with HttpPanelResponse

use of org.zaproxy.zap.extension.httppanel.HttpPanelResponse in project zaproxy by zaproxy.

the class ManualHttpRequestEditorDialog method getResponsePanel.

private HttpPanelResponse getResponsePanel() {
    if (responsePanel == null) {
        responsePanel = new HttpPanelResponse(false, configurationKey);
        responsePanel.setEnableViewSelect(true);
        responsePanel.loadConfig(Model.getSingleton().getOptionsParam().getConfig());
    }
    return responsePanel;
}
Also used : HttpPanelResponse(org.zaproxy.zap.extension.httppanel.HttpPanelResponse)

Aggregations

HttpPanelResponse (org.zaproxy.zap.extension.httppanel.HttpPanelResponse)2 ImageIcon (javax.swing.ImageIcon)1