public class MaileonProxy
extends java.net.Proxy
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
HttpProxyHost |
protected int |
HttpProxyPort |
protected java.lang.String |
HttpsProxyHost |
protected int |
HttpsProxyPort |
Constructor and Description |
---|
MaileonProxy(java.net.Proxy.Type type,
java.net.SocketAddress sa)
Creates an entry representing a PROXY connection.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHttpProxyHost() |
int |
getHttpProxyPort() |
java.lang.String |
getHttpsProxyHost() |
int |
getHttpsProxyPort() |
void |
setHttpProxyHost(java.lang.String httpProxyHost) |
void |
setHttpProxyPort(int httpProxyPort) |
void |
setHttpsProxyHost(java.lang.String httpsProxyHost) |
void |
setHttpsProxyPort(int httpsProxyPort) |
protected java.lang.String HttpProxyHost
protected int HttpProxyPort
protected java.lang.String HttpsProxyHost
protected int HttpsProxyPort
public MaileonProxy(java.net.Proxy.Type type, java.net.SocketAddress sa)
Use the Proxy.NO_PROXY
constant
for representing a direct connection.
type
- the Type
of the proxysa
- the SocketAddress
for that proxyjava.lang.IllegalArgumentException
- when the type and the address are
incompatiblepublic java.lang.String getHttpProxyHost()
public void setHttpProxyHost(java.lang.String httpProxyHost)
public int getHttpProxyPort()
public void setHttpProxyPort(int httpProxyPort)
public java.lang.String getHttpsProxyHost()
public void setHttpsProxyHost(java.lang.String httpsProxyHost)
public int getHttpsProxyPort()
public void setHttpsProxyPort(int httpsProxyPort)
Copyright © 2018. All Rights Reserved.