conversationTable.setDefaultRenderer(Boolean.class,
new EnabledBooleanTableCellRenderer());
suspectedTable.setDefaultRenderer(Boolean.class,
new EnabledBooleanTableCellRenderer());
ConversationTableModel vtm = new ConversationTableModel(_model.getVulnerableConversationModel());
_vulnerableConversationColumns = new ColumnDataModel[] {
new ColumnDataModel<ConversationID>("Possible Injection", Boolean.class) {
public Object getValue(ConversationID key) {
return _model.isXSSSuspected(key) || _model.isCRLFSuspected(key)? Boolean.TRUE : Boolean.FALSE;
}
},
new ColumnDataModel<ConversationID>("XSS", Boolean.class) {
public Object getValue(ConversationID key) {
return _model.isXSSVulnerable(key) ? Boolean.TRUE : Boolean.FALSE;
}
},
new ColumnDataModel<ConversationID>("CRLF", Boolean.class) {
public Object getValue(ConversationID key) {
return _model.isCRLFVulnerable(key) ? Boolean.TRUE : Boolean.FALSE;
}
}
};
vtm.addColumn(_vulnerableConversationColumns[0]);
vtm.addColumn(_vulnerableConversationColumns[1]);
ConversationTableModel stm = new ConversationTableModel(_model.getSuspectedConversationModel());
stm.addColumn(new ColumnDataModel<ConversationID>("XSS", Boolean.class) {
public Object getValue(ConversationID key) {
return _model.isXSSSuspected(key) ? Boolean.TRUE : Boolean.FALSE;
}
});
stm.addColumn(new ColumnDataModel<ConversationID>("XSS parameters", Boolean.class) {
public Object getValue(ConversationID key) {
return _model.getXSSSuspected(key);
}
});
stm.addColumn(new ColumnDataModel<ConversationID>("CRLF", Boolean.class) {
public Object getValue(ConversationID key) {
return _model.isCRLFSuspected(key) ? Boolean.TRUE : Boolean.FALSE;
}
});
stm.addColumn(new ColumnDataModel<ConversationID>("CRLF parameters", Boolean.class) {
public Object getValue(ConversationID key) {
return _model.getCRLFSuspected(key);
}
});