use of javax.swing.JCheckBox in project zaproxy by zaproxy.
the class OptionsScannerPanel method getChkInjectPluginIdInHeader.
private JCheckBox getChkInjectPluginIdInHeader() {
if (chkInjectPluginIdInHeader == null) {
chkInjectPluginIdInHeader = new JCheckBox();
chkInjectPluginIdInHeader.setText(Constant.messages.getString("ascan.options.pluginHeader.label"));
}
return chkInjectPluginIdInHeader;
}
use of javax.swing.JCheckBox in project zaproxy by zaproxy.
the class OptionsScannerPanel method getChkPromptInAttackMode.
private JCheckBox getChkPromptInAttackMode() {
if (chkPromptInAttackMode == null) {
chkPromptInAttackMode = new JCheckBox(Constant.messages.getString("ascan.options.attackPrompt.label"));
chkPromptInAttackMode.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
getChkRescanInAttackMode().setEnabled(!chkPromptInAttackMode.isSelected());
}
});
}
return chkPromptInAttackMode;
}
use of javax.swing.JCheckBox in project zaproxy by zaproxy.
the class CustomScanDialog method populateRequestField.
private void populateRequestField(SiteNode node) {
try {
if (node == null || node.getHistoryReference() == null || node.getHistoryReference().getHttpMessage() == null) {
this.getRequestField().setText("");
} else {
// Populate the custom vectors http pane
HttpMessage msg = node.getHistoryReference().getHttpMessage();
String header = msg.getRequestHeader().toString();
StringBuilder sb = new StringBuilder();
sb.append(header);
this.headerLength = header.length();
// Ignore <METHOD> http(s)://host:port/
this.urlPathStart = header.indexOf("/", header.indexOf("://") + 2) + 1;
sb.append(msg.getRequestBody().toString());
this.getRequestField().setText(sb.toString());
// Only set the recurse option if the node has children, and disable it otherwise
JCheckBox recurseChk = (JCheckBox) this.getField(FIELD_RECURSE);
recurseChk.setEnabled(node.getChildCount() > 0);
recurseChk.setSelected(node.getChildCount() > 0);
}
this.setFieldStates();
} catch (HttpMalformedHeaderException | DatabaseException e) {
//
this.getRequestField().setText("");
}
}
use of javax.swing.JCheckBox in project zaproxy by zaproxy.
the class OptionsVariantPanel method getChkRPCXML.
private JCheckBox getChkRPCXML() {
if (chkRPCXML == null) {
chkRPCXML = new JCheckBox();
chkRPCXML.setText(Constant.messages.getString("variant.options.rpc.xml.label"));
}
return chkRPCXML;
}
use of javax.swing.JCheckBox in project zaproxy by zaproxy.
the class OptionsVariantPanel method getChkInjectableHeadersAllRequests.
private JCheckBox getChkInjectableHeadersAllRequests() {
if (chkInjectableHeadersAllRequests == null) {
chkInjectableHeadersAllRequests = new JCheckBox();
chkInjectableHeadersAllRequests.setText(Constant.messages.getString("variant.options.injectable.headersAllRequests.label"));
chkInjectableHeadersAllRequests.setToolTipText(Constant.messages.getString("variant.options.injectable.headersAllRequests.toolTip"));
}
return chkInjectableHeadersAllRequests;
}
Aggregations