Package org.parosproxy.paros.model

Examples of org.parosproxy.paros.model.SiteNode


          extension.notifyProgress(Progress.failed);
    }
  }
 
  private SiteNode accessNode(URL url) {
    SiteNode startNode = null;
      // Request the URL
    try {
      final HttpMessage msg = new HttpMessage(new URI(url.toString(), true));
      getHttpSender().sendAndReceive(msg,true);
   
View Full Code Here


 
  @SuppressWarnings("unchecked")
  private void sessionChangedEventHandler(Session session) {
    // clear all scans and add new hosts
    this.getPortScanPanel().reset();
    SiteNode root = (SiteNode)session.getSiteTree().getRoot();
    Enumeration<SiteNode> en = root.children();
    while (en.hasMoreElements()) {
      String site = en.nextElement().getNodeName();
      if (site.indexOf("//") >= 0) {
        site = site.substring(site.indexOf("//") + 2);
      }
View Full Code Here

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

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

                if (treeSite != null) {
                SiteNode node = (SiteNode) treeSite.getLastSelectedPathComponent();

                HttpMessage msg = null;
                if (node == null) {
                    return;
                }
                    try {
                        msg = node.getHistoryReference().getHttpMessage();
                    } catch (Exception e1) {
                      log.warn(e1.getMessage(), e1);
                        return;
                    }
                    String tmp = msg.getRequestHeader().getURI().toString();
                    if ( ! node.isLeaf()) {
                      tmp += "/*";
                    }
                    extension.showBreakAddDialog(tmp);
                }
          }
View Full Code Here

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

  private void initialize() {
        this.setText("Spider...");
        this.addActionListener(new ActionListener() {
          public void actionPerformed(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

  }
 
    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

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

            public void actionPerformed(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) {
                  // ZAP: Log exceptions
                              log.warn(e1.getMessage(), e1);
                  return;
                }
View Full Code Here

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

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

                if (treeSite != null) {
                SiteNode node = (SiteNode) treeSite.getLastSelectedPathComponent();

                  ManualRequestEditorDialog dialog = extension.getResendDialog();
                  HistoryReference ref = node.getHistoryReference();
                  HttpMessage msg = null;
                  try {
                        msg = ref.getHttpMessage().cloneRequest();
                        dialog.setMessage(msg);
                        dialog.setVisible(true);
View Full Code Here

  }
 
    public boolean isEnableForComponent(Component invoker) {
        treeSite = getTree(invoker);
        if (treeSite != null) {
        SiteNode node = (SiteNode) treeSite.getLastSelectedPathComponent();
        if (node != null && ! node.isRoot()) {
            this.setEnabled(true);
        } else {
            this.setEnabled(false);
        }
            return true;
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 {
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.