public enum ProxyType extends Enum<ProxyType>
Enum Constant and Description |
---|
INTERNET
Represents a common Internet connection.
|
ON_PREMISE
Represents a connection to an on-premise systems.
|
Modifier and Type | Method and Description |
---|---|
String |
getIdentifier() |
static ProxyType |
ofIdentifier(String identifier)
Returns the
ProxyType which equals the given identifier. |
static ProxyType |
ofIdentifierOrDefault(String identifier,
ProxyType defaultProxyType)
Returns the
ProxyType which equals the given identifier, or the defaultProxyType in case there is
none. |
static ProxyType |
ofIdentifierSensitive(String identifier)
Returns the
ProxyType which equals the given identifier. |
String |
toString() |
static ProxyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProxyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProxyType INTERNET
public static final ProxyType ON_PREMISE
public static ProxyType[] values()
for (ProxyType c : ProxyType.values()) System.out.println(c);
public static ProxyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nonnull public static ProxyType ofIdentifierOrDefault(@Nullable String identifier, @Nonnull ProxyType defaultProxyType)
ProxyType
which equals the given identifier, or the defaultProxyType
in case there is
none.identifier
- The identifier to get a ProxyType
for.defaultProxyType
- The ProxyType
to return if no matching ProxyType
could be found.ProxyType
or the default, if none is matching.@Nonnull public static ProxyType ofIdentifier(@Nonnull String identifier) throws IllegalArgumentException
ProxyType
which equals the given identifier.identifier
- The identifier to get a ProxyType
for.ProxyType
.IllegalArgumentException
- If the given identifier does not map to a ProxyType
.@Nonnull public static ProxyType ofIdentifierSensitive(@Nonnull String identifier) throws IllegalArgumentException
ProxyType
which equals the given identifier.
The matching considers different spellings of ProxyType.ON_PREMISE
.
identifier
- The identifier to get a ProxyType
for.ProxyType
.IllegalArgumentException
- If the given identifier does not map to a ProxyType
.public String getIdentifier()
Copyright © 2020 SAP SE. All rights reserved.