Package org.owasp.webscarab.ui.swing

Examples of org.owasp.webscarab.ui.swing.ConversationTableModel


        this.showConversationAction = new ShowConversationAction(this.openIdModel.getOpenIDConversationModel());
        this.openIdPopupMenu.add(new JMenuItem(this.showConversationAction));
        this.associationOPUrlAction = new AssociationOPUrlAction(this.opUrlTextField);
        this.openIdPopupMenu.add(this.associationOPUrlAction);

        ConversationTableModel openIdTableModel = new ConversationTableModel(
                this.openIdModel.getOpenIDConversationModel());
        openIdTableModel.addColumn(new ColumnDataModel<ConversationID>("OpenID Type", String.class) {
            @Override
            public Object getValue(ConversationID key) {
                return OpenIdPanel.this.openIdModel.getReadableOpenIDMessageType(key);
            }
        });
View Full Code Here


    public SamlPanel(Saml saml) {
        this.saml = saml;
        this.samlModel = saml.getModel();
        initComponents();

        ConversationTableModel samlTableModel = new ConversationTableModel(
                this.samlModel.getSamlConversationModel());
        ColumnWidthTracker.getTracker("SAMLTable").addTable(this.samlTable);
        samlTableModel.addColumn(new ColumnDataModel<ConversationID>("SAML Type", String.class) {
            @Override
            public Object getValue(ConversationID key) {
                return SamlPanel.this.samlModel.getSAMLType(key);
            }
        });
View Full Code Here

                _flm.setFilter(null, _type);
            }
        });
       
        fragmentList.addListSelectionListener(new FragmentsListListener());
        conversationTable.setModel(new ConversationTableModel(_model.getConversationModel()));
        ColumnWidthTracker.getTracker("ConversationTable").addTable(conversationTable);
       
        createActions();
       
        _model.addModelListener(_listener);
View Full Code Here

                descriptionTextField.setText(description);
                expressionTextArea.setText(expression);
            }
        });
       
        TableModel tm = new ConversationTableModel(_conversationModel);
        _conversationSorter = new TableSorter(tm, conversationTable.getTableHeader());
        conversationTable.setModel(_conversationSorter);
        conversationTable.setDefaultRenderer(Date.class, new DateRenderer());
       
        ColumnWidthTracker.getTracker("ConversationTable").addTable(conversationTable);
View Full Code Here

        urlTree.setModel(new UrlTreeModelAdapter(_model.getUrlModel()));
        urlTree.setRootVisible(false);
        urlTree.setShowsRootHandles(true);
        urlTree.setCellRenderer(new UrlTreeRenderer());
       
        TableModel tm = new ConversationTableModel(_model.getConversationModel());
        TableSorter ts = new TableSorter(tm, conversationTable.getTableHeader());
        conversationTable.setModel(ts);
        ColumnWidthTracker.getTracker("ConversationTable").addTable(conversationTable);
        conversationTable.setDefaultRenderer(Date.class, new DateRenderer());
       
View Full Code Here

        dce = new DefaultCellEditor(new JComboBox(_fuzzSources));
        col = paramTable.getColumnModel().getColumn(5);
        col.setCellEditor(dce);
        paramTable.setRowHeight((int)dce.getComponent().getPreferredSize().getHeight());
       
        conversationTable.setModel(new ConversationTableModel(_model.getConversationModel()));
        ColumnWidthTracker.getTracker("ConversationTable").addTable(conversationTable);
        conversationTable.setDefaultRenderer(Date.class, new DateRenderer());
    }
View Full Code Here

        initComponents();
        _compare = compare;
        _model = _compare.getModel();
        baseComboBox.setModel(new ListComboBoxModel(new ConversationListModel(_model.getConversationModel())));
        baseComboBox.setRenderer(new ConversationRenderer(_model.getConversationModel()));
        _tableModel = new ConversationTableModel(_model.getComparisonModel());
        _tableModel.addColumn(new ColumnDataModel<ConversationID>("Distance", Integer.class) {
            public Object getValue(ConversationID key) {
                if (_model == null) return null;
                return _model.getDistance(key);
            }
View Full Code Here

        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);
            }
        });
       
View Full Code Here

        initComponents();

        this.showConversationAction = new ShowConversationAction(this.wsfedModel.getConversationModel());
        this.wsfedPopupMenu.add(this.showConversationAction);

        ConversationTableModel wsfedTableModel = new ConversationTableModel(
                this.wsfedModel.getConversationModel());
        wsfedTableModel.addColumn(new ColumnDataModel<ConversationID>("WS-Federation", String.class) {
            @Override
            public Object getValue(ConversationID key) {
                return WSFederationPanel.this.wsfedModel.getReadableMessageType(key);
            }
        });
View Full Code Here

                _flm.setFilter(null, _type);
            }
        });
       
        fragmentList.addListSelectionListener(new FragmentsListListener());
        conversationTable.setModel(new ConversationTableModel(_model.getConversationModel()));
        ColumnWidthTracker.getTracker("ConversationTable").addTable(conversationTable);
       
        createActions();
       
        _model.addModelListener(_listener);
View Full Code Here

TOP

Related Classes of org.owasp.webscarab.ui.swing.ConversationTableModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.