|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ezic.net.NetworkClient
public abstract class NetworkClient
This is an abstract base-class for www protocol based clients
| Field Summary | |
|---|---|
static java.lang.String |
PROTOCOL_HTTP
Plaintext HTTP protocol. |
static java.lang.String |
PROTOCOL_HTTPS
SSL encrypted HTTPS protocol. |
| Constructor Summary | |
|---|---|
protected |
NetworkClient(java.lang.String protocol,
java.lang.String server,
int port,
java.lang.String path)
|
| Method Summary | |
|---|---|
int |
getPort()
|
java.lang.String |
getProtocol()
|
java.lang.String |
getServer()
|
java.net.URL |
getURL()
|
protected void |
setPath(java.lang.String path)
This function changes the path part of the url |
void |
setPort(int port)
This function allows you to change the TCP port used to submit your request to the server. |
void |
setProtocol(java.lang.String protocol)
This function allows you to change the protocol used to submit your request to the server. |
void |
setServer(java.lang.String server)
This function allows you to change the server your request is submitted to. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROTOCOL_HTTP
setProtocol(java.lang.String),
Constant Field Valuespublic static final java.lang.String PROTOCOL_HTTPS
setProtocol(java.lang.String),
Constant Field Values| Constructor Detail |
|---|
protected NetworkClient(java.lang.String protocol,
java.lang.String server,
int port,
java.lang.String path)
| Method Detail |
|---|
public void setServer(java.lang.String server)
throws java.net.MalformedURLException
java.net.MalformedURLException
public void setProtocol(java.lang.String protocol)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionPROTOCOL_HTTP,
PROTOCOL_HTTPS
public void setPort(int port)
throws java.net.MalformedURLException
java.net.MalformedURLException
protected void setPath(java.lang.String path)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic java.net.URL getURL()
public java.lang.String getProtocol()
public java.lang.String getServer()
public int getPort()
|
Version 3.1.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||