extendedurl.java
来自「一个Java的网络爬虫」· Java 代码 · 共 58 行
JAVA
58 行
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 + =
减小字号Ctrl + -
显示快捷键?