|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.walluck.net.ProxyConnection
Handles proxy support.
Field Summary | |
static int |
PROXY_TYPE_HTTP
HTTP or HTTPS proxy. |
static int |
PROXY_TYPE_SOCKS4
SOCKS4 proxy. |
static int |
PROXY_TYPE_SOCKS5
SOCKS5 proxy. |
Constructor Summary | |
ProxyConnection()
Creates a new proxy connection. |
Method Summary | |
void |
connect(java.lang.String host,
int port)
Connect to the proxy. |
java.lang.String |
getPassword()
Get the value of password. |
java.lang.String |
getProxyHost()
Get the value of proxyHost. |
int |
getProxyPort()
Get the value of proxyPort. |
java.net.Socket |
getSocket()
Get the value of socket. |
int |
getType()
Get the value of type. |
java.net.URLConnection |
getURLConnection()
Get the value of uc. |
java.lang.String |
getUser()
Get the value of user. |
void |
setPassword(java.lang.String password)
Set the value of password. |
void |
setProxyHost(java.lang.String proxyHost)
Set the value of proxyHost. |
void |
setProxyPort(int proxyPort)
Set the vlaue of proxyPort. |
void |
setType(int type)
Set the value of type. |
void |
setUseJavaInternal(boolean useJavaInternal)
Set the value of useJavaInternal. |
void |
setUser(java.lang.String user)
Set the value of user. |
boolean |
useJavaInternal()
Get the value of useJavaInternal. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PROXY_TYPE_SOCKS4
public static final int PROXY_TYPE_SOCKS5
public static final int PROXY_TYPE_HTTP
Constructor Detail |
public ProxyConnection()
Method Detail |
public void connect(java.lang.String host, int port) throws java.io.IOException
host
- the proxy hostport
- the proxy port
java.io.IOException
- if an error occurspublic int getType()
public void setType(int type)
type
- Value to assign to typepublic java.lang.String getUser()
public void setUser(java.lang.String user)
user
- Value to assign to user.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- Value to assign to password.public boolean useJavaInternal()
public void setUseJavaInternal(boolean useJavaInternal)
useJavaInternal
- Value to assign to useJavaInternal.public java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
proxyHost
- Value to assign to proxyHost.public int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort
- Value to assign to proxyPort.public java.net.Socket getSocket()
public java.net.URLConnection getURLConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |