public enum TechType extends Enum<TechType> implements Tech
Enum Constant and Description |
---|
CONSOLE |
DAHDI |
DIALPLAN |
IAX |
IAX2 |
LOCAL |
PARKING |
PJSIP |
SIP |
SIPPEER |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static TechType |
getTech(String fullyQualifiedEndPoint)
Extracts the technology from a fully qualified endpoint string of the form:
TECH/NNNN
|
static boolean |
hasTech(String endPointName)
returns true if the endPoint name contains a tech descriptor even if it isn't
a known descriptor.
|
static boolean |
hasValidTech(String endPointName)
returns true if the endPoint name contains a valid tech descriptor.
|
static TechType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TechType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TechType UNKNOWN
public static final TechType SIP
public static final TechType DAHDI
public static final TechType LOCAL
public static final TechType IAX
public static final TechType IAX2
public static final TechType DIALPLAN
public static final TechType CONSOLE
public static final TechType PJSIP
public static final TechType PARKING
public static final TechType SIPPEER
public static TechType[] values()
for (TechType c : TechType.values()) System.out.println(c);
public static TechType 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 nullpublic static TechType getTech(String fullyQualifiedEndPoint)
fullyQualifiedEndPoint
- public static boolean hasValidTech(String endPointName)
endPointName
- public static boolean hasTech(String endPointName)
endPointName
- Copyright © 2004–2022. All rights reserved.