Package org.parosproxy.paros.model

Examples of org.parosproxy.paros.model.SiteNode


                    return;
                }
               
                try {
                    HistoryReference ref = (HistoryReference) obj[0];
                    SiteNode siteNode = ref.getSiteNode();
                    extension.startScan(siteNode);
                } catch (Exception e1) {
                    extension.getView().showWarningDialog("Error getting History.");
                }
          }
View Full Code Here


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

        public void actionPerformed(java.awt.event.ActionEvent e) {   

            JTree siteTree = getView().getSiteTreePanel().getTreeSite();
                SiteNode node = (SiteNode) siteTree.getLastSelectedPathComponent();
                if (node == null) {
                    getView().showWarningDialog("Please select a site/folder/URL in Sites panel.");
                    return;
                }
            menuItemScan.setEnabled(false);
View Full Code Here

  */
  private String getChildSuffix(SiteNode node, boolean performRecursiveCheck) {

    String resultSuffix = "";
    String suffix = null;
    SiteNode child = null;
        HistoryReference ref = null;
    HttpMessage msg = null;
    try {

      for (int i=0; i<staticSuffixList.length; i++) {
        suffix = staticSuffixList[i];
        for (int j=0; j<node.getChildCount(); j++) {
          child = (SiteNode) node.getChildAt(j);
                    ref = child.getHistoryReference();
          try {
              msg = ref.getHttpMessage();
                        if (msg.getRequestHeader().getURI().getPath().endsWith(suffix)) {
                  return suffix;
              }
View Full Code Here

  /**
  Analyse node (should be a folder unless it is host level) in-order.
  */
  private void inOrderAnalyse(SiteNode node) {
     
    SiteNode tmp = null;
   
    if (isStop) {
        return;
    }
   
View Full Code Here

      HostProcess hostProcess = null;
      Thread thread = null;
     
      if (node.isRoot()) {
          for (int i=0; i<node.getChildCount() && !isStop(); i++) {
              SiteNode child = (SiteNode) node.getChildAt(i);
              String hostAndPort = getHostAndPort(child);
              hostProcess = new HostProcess(hostAndPort, this, scannerParam, connectionParam);
              hostProcess.setStartNode(child);
              do {
                  thread = pool.getFreeThreadAndRun(hostProcess);
View Full Code Here

      return isStop;
  }
 
  private String getHostAndPort(SiteNode node) {
      String result = "";
      SiteNode parent = null;
      if (node == null || node.isRoot()) {
          result = "";
      } else {
          SiteNode curNode = node;
          parent = (SiteNode) node.getParent();
          while (!parent.isRoot()) {
              curNode = parent;
              parent = (SiteNode) curNode.getParent();
          }
          result = curNode.toString();
      }
      return result;
  }
View Full Code Here

              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 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

              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 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

TOP

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

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.