Package org.mockserver.model
Enum DnsResponseCode
- java.lang.Object
-
- java.lang.Enum<DnsResponseCode>
-
- org.mockserver.model.DnsResponseCode
-
- All Implemented Interfaces:
Serializable,Comparable<DnsResponseCode>
public enum DnsResponseCode extends Enum<DnsResponseCode>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DnsResponseCodefromIntValue(int intValue)intintValue()static DnsResponseCodevalueOf(String name)Returns the enum constant of this type with the specified name.static DnsResponseCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOERROR
public static final DnsResponseCode NOERROR
-
FORMERR
public static final DnsResponseCode FORMERR
-
SERVFAIL
public static final DnsResponseCode SERVFAIL
-
NXDOMAIN
public static final DnsResponseCode NXDOMAIN
-
NOTIMP
public static final DnsResponseCode NOTIMP
-
REFUSED
public static final DnsResponseCode REFUSED
-
-
Method Detail
-
values
public static DnsResponseCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DnsResponseCode c : DnsResponseCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DnsResponseCode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
intValue
public int intValue()
-
fromIntValue
public static DnsResponseCode fromIntValue(int intValue)
-
-