@Experimental @Generated @ThreadSafe @Immutable public class Proxy extends IdentifiableBase implements Serializable
<proxy> element contains informations required to a proxy settings.| Modifier and Type | Class and Description |
|---|---|
static class |
Proxy.Builder
Builder class used to create Proxy instances.
|
GLOBAL_LEVEL, USER_LEVEL| Modifier and Type | Method and Description |
|---|---|
String |
getHost()
The proxy host.
|
String |
getNonProxyHosts()
The list of non-proxied hosts (delimited by |).
|
String |
getPassword()
The proxy password.
|
int |
getPort()
The proxy port.
|
String |
getProtocol()
The proxy protocol.
|
String |
getUsername()
The proxy user.
|
boolean |
isActive()
Whether this proxy configuration is the active one.
|
static Proxy.Builder |
newBuilder()
Creates a new
Proxy builder instance. |
static Proxy.Builder |
newBuilder(boolean withDefaults)
Creates a new
Proxy builder instance using default values or not. |
static Proxy.Builder |
newBuilder(Proxy from)
Creates a new
Proxy builder instance using the specified object as a basis. |
static Proxy.Builder |
newBuilder(Proxy from,
boolean forceCopy)
Creates a new
Proxy builder instance using the specified object as a basis. |
static Proxy |
newInstance()
Creates a new
Proxy instance. |
static Proxy |
newInstance(boolean withDefaults)
Creates a new
Proxy instance using default values or not. |
Proxy.Builder |
with()
Creates a new builder with this object as the basis.
|
Proxy |
withActive(boolean active)
Creates a new
Proxy instance using the specified active. |
Proxy |
withHost(String host)
Creates a new
Proxy instance using the specified host. |
Proxy |
withId(String id)
Creates a new
Proxy instance using the specified id. |
Proxy |
withNonProxyHosts(String nonProxyHosts)
Creates a new
Proxy instance using the specified nonProxyHosts. |
Proxy |
withPassword(String password)
Creates a new
Proxy instance using the specified password. |
Proxy |
withPort(int port)
Creates a new
Proxy instance using the specified port. |
Proxy |
withProtocol(String protocol)
Creates a new
Proxy instance using the specified protocol. |
Proxy |
withUsername(String username)
Creates a new
Proxy instance using the specified username. |
getId, newBuilder, newBuildergetSourceLevel, newBuilder, newBuilder, setSourceLevelpublic boolean isActive()
booleanpublic String getProtocol()
Stringpublic String getUsername()
Stringpublic String getPassword()
Stringpublic int getPort()
intpublic String getHost()
Stringpublic String getNonProxyHosts()
String@Nonnull public Proxy.Builder with()
with in class IdentifiableBaseBuilder@Nonnull public Proxy withId(String id)
Proxy instance using the specified id.withId in class IdentifiableBaseid - the new String to useProxy with the specified id@Nonnull public Proxy withActive(boolean active)
Proxy instance using the specified active.active - the new boolean to useProxy with the specified active@Nonnull public Proxy withProtocol(String protocol)
Proxy instance using the specified protocol.protocol - the new String to useProxy with the specified protocol@Nonnull public Proxy withUsername(String username)
Proxy instance using the specified username.username - the new String to useProxy with the specified username@Nonnull public Proxy withPassword(String password)
Proxy instance using the specified password.password - the new String to useProxy with the specified password@Nonnull public Proxy withPort(int port)
Proxy instance using the specified port.port - the new int to useProxy with the specified port@Nonnull public Proxy withHost(String host)
Proxy instance using the specified host.host - the new String to useProxy with the specified host@Nonnull public Proxy withNonProxyHosts(String nonProxyHosts)
Proxy instance using the specified nonProxyHosts.nonProxyHosts - the new String to useProxy with the specified nonProxyHosts@Nonnull public static Proxy newInstance()
Proxy instance.
Equivalent to newInstance( true ).ProxynewInstance(boolean)@Nonnull public static Proxy newInstance(boolean withDefaults)
Proxy instance using default values or not.
Equivalent to newBuilder( withDefaults ).build().withDefaults - the boolean indicating whether default values should be usedProxy@Nonnull public static Proxy.Builder newBuilder()
Proxy builder instance.
Equivalent to newBuilder( true ).BuildernewBuilder(boolean)@Nonnull public static Proxy.Builder newBuilder(boolean withDefaults)
Proxy builder instance using default values or not.withDefaults - the boolean indicating whether default values should be usedBuilder@Nonnull public static Proxy.Builder newBuilder(Proxy from)
Proxy builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false ).from - the Proxy instance to use as a basisBuilder@Nonnull public static Proxy.Builder newBuilder(Proxy from, boolean forceCopy)
Proxy builder instance using the specified object as a basis.from - the Proxy instance to use as a basisforceCopy - the boolean indicating if a copy should be forcedBuilderCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.