⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extendedurl.java

📁 真正的网络爬虫的源代码啊,希望大家好好阅读,写出心得体会啊
💻 JAVA
字号:
package net.matuschek.http;

/*********************************************
    Copyright (c) 2001 by Daniel Matuschek
*********************************************/
                                         
import java.net.URL;

/**
 * This class represents an URL that contains also
 * a argument (e.g. the values for HTTP POST) and a request type (GET/POST)
 * 
 * @author Daniel Matuschek 
 * @version $Id $
 */
public class ExtendedURL {
  
  private URL url = null;
  private int requestMethod = HttpConstants.GET;
  private String params = "";


  /**
   * Simple constructoir, does nothing special 
   */
  public ExtendedURL() {
  }

  public URL getURL() {
    return this.url;
  }

  public void setURL(URL url) {
    this.url = url;
  }


  public int getRequestMethod() {
    return this.requestMethod;
  }

  public void setRequestMethod(int requestMethod) {
    this.requestMethod = requestMethod;
  }

  public String getParams() {
    return this.params;
  }


  public void setParams(String params) {
    this.params = params;
  }

  
  
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -