Enum ResponseExceptionType
- java.lang.Object
-
- java.lang.Enum<ResponseExceptionType>
-
- net.ripe.rpki.commons.provisioning.protocol.ResponseExceptionType
-
- All Implemented Interfaces:
Serializable,Comparable<ResponseExceptionType>
public enum ResponseExceptionType extends Enum<ResponseExceptionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_DATABAD_SENDER_AND_RECIPIENTPOTENTIAL_REPLAY_ATTACKTHROTTLINGUNKNOWN_PROVISIONING_URLUNKNOWN_RECIPIENTUNKNOWN_SENDER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()intgetHttpResponseCode()static ResponseExceptionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ResponseExceptionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BAD_DATA
public static final ResponseExceptionType BAD_DATA
-
UNKNOWN_PROVISIONING_URL
public static final ResponseExceptionType UNKNOWN_PROVISIONING_URL
-
UNKNOWN_SENDER
public static final ResponseExceptionType UNKNOWN_SENDER
-
UNKNOWN_RECIPIENT
public static final ResponseExceptionType UNKNOWN_RECIPIENT
-
BAD_SENDER_AND_RECIPIENT
public static final ResponseExceptionType BAD_SENDER_AND_RECIPIENT
-
POTENTIAL_REPLAY_ATTACK
public static final ResponseExceptionType POTENTIAL_REPLAY_ATTACK
-
THROTTLING
public static final ResponseExceptionType THROTTLING
-
-
Method Detail
-
values
public static ResponseExceptionType[] 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 (ResponseExceptionType c : ResponseExceptionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResponseExceptionType 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
-
getHttpResponseCode
public int getHttpResponseCode()
-
getDescription
public String getDescription()
-
-