public static enum S5bTransportMethod.Candidate.Type extends java.lang.Enum<S5bTransportMethod.Candidate.Type>
The transport type.
Enum Constant and Description |
---|
ASSISTED
Direct connection using NAT assisting technologies like NAT-PMP or UPnP-IGD.
|
DIRECT
Direct connection using the given interface.
|
PROXY
SOCKS5 Relay.
|
TUNNEL
Tunnel protocols such as Teredo.
|
Modifier and Type | Method and Description |
---|---|
int |
getPreferenceValue()
The preference value.
|
static S5bTransportMethod.Candidate.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static S5bTransportMethod.Candidate.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final S5bTransportMethod.Candidate.Type DIRECT
public static final S5bTransportMethod.Candidate.Type ASSISTED
public static final S5bTransportMethod.Candidate.Type TUNNEL
public static final S5bTransportMethod.Candidate.Type PROXY
public static S5bTransportMethod.Candidate.Type[] values()
for (S5bTransportMethod.Candidate.Type c : S5bTransportMethod.Candidate.Type.values()) System.out.println(c);
public static S5bTransportMethod.Candidate.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getPreferenceValue()
The preference value.
Copyright © 2014–2019 XMPP.rocks. All rights reserved.