public class URLRequest
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
GET |
static java.lang.String |
HTTP |
static int |
POST |
| Constructor and Description |
|---|
URLRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFile() |
java.lang.String |
getFileName() |
java.lang.String |
getHost() |
int |
getPort() |
java.lang.String |
getProtocol() |
int |
getRequestType() |
java.net.URL |
getUrl() |
int |
hashCode() |
void |
setFile(java.lang.String page) |
void |
setFileName(java.lang.String fileName) |
void |
setHost(java.lang.String host) |
void |
setPort(int port) |
void |
setProtocol(java.lang.String protocol) |
void |
setRequestType(int requestType) |
public static final java.lang.String HTTP
public static final int GET
public static final int POST
public java.net.URL getUrl()
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - The fileName to set.public java.lang.String getHost()
public void setHost(java.lang.String host)
host - The host to set.public java.lang.String getFile()
public void setFile(java.lang.String page)
page - The file to set.public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
protocol - The protocol to set.public int getRequestType()
public void setRequestType(int requestType)
requestType - The requestType to set.public int getPort()
public void setPort(int port)
port - The port to set.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object