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;
}
use of javax.swing.JCheckBox in project zaproxy by zaproxy.
the class OptionsVariantPanel method getChkRPCJSON.
private JCheckBox getChkRPCJSON() {
if (chkRPCJSON == null) {
chkRPCJSON = new JCheckBox();
chkRPCJSON.setText(Constant.messages.getString("variant.options.rpc.json.label"));
}
return chkRPCJSON;
}
use of javax.swing.JCheckBox in project zaproxy by zaproxy.
the class OptionsVariantPanel method getChkInjectableCookie.
private JCheckBox getChkInjectableCookie() {
if (chkInjectableCookie == null) {
chkInjectableCookie = new JCheckBox();
chkInjectableCookie.setText(Constant.messages.getString("variant.options.injectable.cookie.label"));
}
return chkInjectableCookie;
}
Aggregations