Package org.parosproxy.paros.model

Examples of org.parosproxy.paros.model.SiteMap


          public void actionPerformed(java.awt.event.ActionEvent e) {   
              if (invoker.getName().equals("treeSite")) {
                  JTree tree = (JTree) invoker;
                    TreePath[] paths = tree.getSelectionPaths();
                    SiteMap map = (SiteMap) tree.getModel();
                    for (int i=0; i<paths.length;i++) {
                        SiteNode node = (SiteNode) paths[i].getLastPathComponent();
                        purge(map, node);
                    }
              }
View Full Code Here


          public void actionPerformed(java.awt.event.ActionEvent e) {   
              if (invoker.getName().equals("treeSite")) {
                  JTree tree = (JTree) invoker;
                    TreePath[] paths = tree.getSelectionPaths();
                    SiteMap map = (SiteMap) tree.getModel();
                    for (int i=0; i<paths.length;i++) {
                        SiteNode node = (SiteNode) paths[i].getLastPathComponent();
                        delete(map, node);
                    }
                }
View Full Code Here

        }
  }
 
  public void readURI(HttpMessage msg) {

      SiteMap siteTree = getModel().getSession().getSiteTree();

      // record into sitemap if not exist
    HttpMessage existing = siteTree.pollPath(msg);

//    always add to tree   
//    if (existing != null) {
//        return;
//    }
   
    HistoryReference historyRef = null;
        try {
            historyRef = new HistoryReference(getModel().getSession(), HistoryReference.TYPE_SPIDER, msg);
        } catch (Exception e) {}
        siteTree.addPath(historyRef, msg);

       
  }
View Full Code Here

        if (node == null) {
            return;
        }

        Session session = Model.getSingleton().getSession();
        SiteMap map = session.getSiteTree();

        if (node.getHistoryReference() == ref) {
            // same active Node
            PopupPurgeMenu.purge(map, node);
        } else {
View Full Code Here

        if (node == null) {
            return;
        }

        Session session = Model.getSingleton().getSession();
        SiteMap map = session.getSiteTree();

        if (node.getHistoryReference() == ref) {
            // same active Node
            PopupDeleteMenu.delete(map, node);
        } else {
View Full Code Here

      }
    }
  }

  public void readURI(HttpMessage msg) {
    SiteMap siteTree = getModel().getSession().getSiteTree();

    HistoryReference historyRef = null;
    try {
      historyRef = new HistoryReference(getModel().getSession(),
          HistoryReference.TYPE_SPIDER, msg);
    } catch (Exception e) {
      // ZAP: Log exceptions
          log.warn(e.getMessage(), e);
    }
    siteTree.addPath(historyRef, msg);
  }
View Full Code Here

      public void actionPerformed(java.awt.event.ActionEvent e) {
        if (invoker.getName().equals("treeSite")) {
          JTree tree = (JTree) invoker;
          TreePath[] paths = tree.getSelectionPaths();
          SiteMap map = (SiteMap) tree.getModel();
          for (int i = 0; i < paths.length; i++) {
            SiteNode node = (SiteNode) paths[i]
                .getLastPathComponent();
            purge(map, node);
          }
View Full Code Here

      public void actionPerformed(java.awt.event.ActionEvent e) {
        if (invoker.getName().equals("treeSite")) {
          JTree tree = (JTree) invoker;
          TreePath[] paths = tree.getSelectionPaths();
          SiteMap map = (SiteMap) tree.getModel();
          for (int i = 0; i < paths.length; i++) {
            SiteNode node = (SiteNode) paths[i]
                .getLastPathComponent();
            delete(map, node);
          }
View Full Code Here

      public void actionPerformed(java.awt.event.ActionEvent e) {
        if (invoker.getName().equals("treeSite")) {
         
          JTree tree = (JTree) invoker;
          TreePath[] paths = tree.getSelectionPaths();
          SiteMap map = (SiteMap) tree.getModel();
          for (int i = 0; i < paths.length; i++) {
            SiteNode node = (SiteNode) paths[i].getLastPathComponent();
           
            // Andiparos: Root should not be copied to Clipboard
            if (!node.isRoot()) {
View Full Code Here

    if (node == null) {
      return;
    }

    Session session = Model.getSingleton().getSession();
    SiteMap map = session.getSiteTree();

    if (node.getHistoryReference() == ref) {
      // same active Node
      PopupPurgeMenu.purge(map, node);
    } else {
View Full Code Here

TOP

Related Classes of org.parosproxy.paros.model.SiteMap

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.