_xsscrlf = xsscrlf;
_model = xsscrlf.getModel();
initComponents();
_vulnerableConversationColumns = new ColumnDataModel[2];
ConversationTableModel vtm = new ConversationTableModel(_model.getVulnerableConversationModel());
_vulnerableConversationColumns = new ColumnDataModel[] {
new ColumnDataModel() {
public String getColumnName() {
return "Possible Injection";
}
public Object getValue(Object key) {
ConversationID id = (ConversationID) key;
return _model.isXSSSuspected(id) || _model.isCRLFSuspected(id)? Boolean.TRUE : Boolean.FALSE;
}
public Class getColumnClass() {
return Boolean.class;
}
},
new ColumnDataModel() {
public String getColumnName() {
return "XSS";
}
public Object getValue(Object key) {
return _model.isXSSVulnerable((ConversationID) key) ? Boolean.TRUE : Boolean.FALSE;
}
public Class getColumnClass() {
return Boolean.class;
}
},
new ColumnDataModel() {
public String getColumnName() {
return "CRLF";
}
public Object getValue(Object key) {
return _model.isCRLFVulnerable((ConversationID) key) ? Boolean.TRUE : Boolean.FALSE;
}
public Class getColumnClass() {
return Boolean.class;
}
}
};
vtm.addColumn(_vulnerableConversationColumns[0]);
vtm.addColumn(_vulnerableConversationColumns[1]);
ConversationTableModel stm = new ConversationTableModel(_model.getSuspectedConversationModel());
stm.addColumn(new ColumnDataModel() {
public String getColumnName() {
return "XSS";
}
public Object getValue(Object key) {
return _model.isXSSSuspected((ConversationID) key) ? Boolean.TRUE : Boolean.FALSE;
}
public Class getColumnClass() {
return Boolean.class;
}
});
stm.addColumn(new ColumnDataModel() {
public String getColumnName() {
return "XSS parameters";
}
public Object getValue(Object key) {
return _model.getXSSSuspected((ConversationID) key);
}
public Class getColumnClass() {
return String.class;
}
});
stm.addColumn(new ColumnDataModel() {
public String getColumnName() {
return "CRLF";
}
public Object getValue(Object key) {
return _model.isCRLFSuspected((ConversationID) key) ? Boolean.TRUE : Boolean.FALSE;
}
public Class getColumnClass() {
return Boolean.class;
}
});
stm.addColumn(new ColumnDataModel() {
public String getColumnName() {
return "CRLF parameters";
}
public Object getValue(Object key) {
return _model.getCRLFSuspected((ConversationID) key);