Modifier and Type | Field and Description |
---|---|
static String |
TYPE_HTTP
Type denoting a proxy for HTTP transfers.
|
static String |
TYPE_HTTPS
Type denoting a proxy for HTTPS transfers.
|
Constructor and Description |
---|
Proxy(String type,
String host,
int port)
Creates a new proxy with the specified properties and no authentication.
|
Proxy(String type,
String host,
int port,
Authentication auth)
Creates a new proxy with the specified properties.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Authentication |
getAuthentication()
Gets the authentication to use for the proxy connection.
|
String |
getHost()
Gets the host for this proxy.
|
int |
getPort()
Gets the port number for this proxy.
|
String |
getType()
Gets the type of this proxy.
|
int |
hashCode() |
String |
toString() |
public static final String TYPE_HTTP
public static final String TYPE_HTTPS
public Proxy(String type, String host, int port)
type
- The type of the proxy, e.g. "http", may be null
.host
- The host of the proxy, may be null
.port
- The port of the proxy.public Proxy(String type, String host, int port, Authentication auth)
type
- The type of the proxy, e.g. "http", may be null
.host
- The host of the proxy, may be null
.port
- The port of the proxy.auth
- The authentication to use for the proxy connection, may be null
.public String getType()
null
.public String getHost()
null
.public int getPort()
public Authentication getAuthentication()
null
if none.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.