Examples of SiteNode


Examples of org.parosproxy.paros.model.SiteNode

              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

Examples of org.parosproxy.paros.model.SiteNode

        }

    }

    public static void purge(SiteMap map, SiteNode node) {
        SiteNode child = null;
        synchronized(map) {
            while (node.getChildCount() > 0) {
                try {
                    child = (SiteNode) node.getChildAt(0);
                    purge(map, child);
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

              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

Examples of org.parosproxy.paros.model.SiteNode

        }

    }
   
   public static void delete(SiteMap map, SiteNode node) {
        SiteNode child = null;
        synchronized(map) {
            while (node.getChildCount() > 0) {
                try {
                    child = (SiteNode) node.getChildAt(0);
                    delete(map, child);
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

                    showBrowser(ref);                                  
                       

                } else if (lastInvoker.getName().equals("treeSite")) {
                    JTree tree = (JTree) lastInvoker;
                    SiteNode node = (SiteNode) tree.getLastSelectedPathComponent();
                    ref = node.getHistoryReference();
                    showBrowser(ref);
                }
          }
        });
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

      menuItemSpider.setText("Spider...");
      menuItemSpider.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            JTree siteTree = getView().getSiteTreePanel().getTreeSite();
                SiteNode node = (SiteNode) siteTree.getLastSelectedPathComponent();
                HttpMessage msg = null;
                if (node == null) {
                    getView().showWarningDialog("You need to visit the website via a browser first and select a URL/folder/node in the 'Sites' panel displayed.");
                    return;
                }
                  setStartNode(node);
                  if (node.isRoot()) {
                      showDialog("All sites will be crawled");
                  } else {
                        try {
                            msg = node.getHistoryReference().getHttpMessage();
                        } catch (Exception e1) {
                            return;
                        }
                        String tmp = msg.getRequestHeader().getURI().toString();
                        showDialog(tmp);
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

        this.addActionListener(new java.awt.event.ActionListener() {

          public void actionPerformed(java.awt.event.ActionEvent e) {   
            if (treeSite != null) {
                SiteNode node = (SiteNode) treeSite.getLastSelectedPathComponent();
                extension.setStartNode(node);
                  if (node.isRoot()) {
                      extension.showDialog("All sites will be crawled");
                  } else {
                      try {
                          HttpMessage msg = node.getHistoryReference().getHttpMessage();
                          if (msg != null) {
                              String tmp = msg.getRequestHeader().getURI().toString();
                              extension.showDialog(tmp);
                          }
                      } catch (Exception e1) {
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

  }
 
    public boolean isEnableForComponent(Component invoker) {
        treeSite = getTree(invoker);
        if (treeSite != null) {
        SiteNode node = (SiteNode) treeSite.getLastSelectedPathComponent();
        if (node != null) {
            this.setEnabled(true);
        } else {
            this.setEnabled(false);
        }
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

    return progressBar;
  }
 
  public void valueChanged(javax.swing.event.TreeSelectionEvent e) {
      JTree siteTree = extension.getView().getSiteTreePanel().getTreeSite();
      SiteNode node = (SiteNode) siteTree.getLastSelectedPathComponent();
      extension.setStartNode(node);
        if (node.isRoot()) {
            getTxtDisplay().setText("All sites will be crawled");
        } else {
            try {
                HttpMessage msg = node.getHistoryReference().getHttpMessage();
                if (msg != null) {
                    String tmp = msg.getRequestHeader().getURI().toString();
                    getTxtDisplay().setText(tmp);
                    //getTxtDisplay().setCaretPosition(0);
                   
View Full Code Here

Examples of org.parosproxy.paros.model.SiteNode

            return;
        }
        extension.getHistoryList().removeElement(ref);
        ref.delete();

        SiteNode node = ref.getSiteNode();
        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 {
            node.getPastHistoryReference().remove(ref);
        }       

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.