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