public class ConnectionFactory extends Object implements org.glassfish.jersey.client.HttpUrlConnectorProvider.ConnectionFactory
| Constructor and Description |
|---|
ConnectionFactory()
Creates an instance.
|
ConnectionFactory(String proxyHost,
Integer proxyPort)
Creates an instance with the specified proxy settings.
|
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
getConnection(URL url) |
String |
getPassword()
Get the proxy connection password.
|
String |
getProxyHost()
Get the proxy host.
|
Integer |
getProxyPort()
Get the proxy port.
|
String |
getProxyRealm()
Get the proxy realm name.
|
String |
getUsername()
Get the proxy connection user name.
|
void |
setPassword(String password)
Set the proxy connection password.
|
void |
setProxyHost(String proxyHost)
Set the proxy host.
|
void |
setProxyPort(String proxyPort)
Set the proxy port.
|
void |
setProxyRealm(String proxyRealm)
Set the proxy realm name.
|
void |
setUsername(String username)
Set the proxy connection user name.
|
public final String getProxyHost()
public final void setProxyHost(String proxyHost)
proxyHost - the proxy hostpublic final Integer getProxyPort()
public final void setProxyPort(String proxyPort)
proxyPort - the proxy portpublic final String getProxyRealm()
public final void setProxyRealm(String proxyRealm)
proxyRealm - the proxy realm namepublic final String getUsername()
public final void setUsername(String username)
username - the proxy connection user namepublic final String getPassword()
public final void setPassword(String password)
password - the proxy connection passwordpublic final HttpURLConnection getConnection(URL url) throws IOException
getConnection in interface org.glassfish.jersey.client.HttpUrlConnectorProvider.ConnectionFactoryIOExceptionCopyright © 2022 Samply Community. All rights reserved.