Package net.messagevortex.asn1
Enum Class HeaderRequestType
- All Implemented Interfaces:
Serializable,Comparable<HeaderRequestType>,Constable
Type of header requests
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic HeaderRequestTypegetByClass(Class c) Obtain the respective header request type by using the template class.intgetId()obtain the ASN.1 ID of the header request.Returns a class representing the respective header request.static HeaderRequestTypeReturns the enum constant of this class with the specified name.static HeaderRequestType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDENTITY
-
CAPABILITIES
-
MESSAGE_QUOTA
-
TRANSFER_QUOTA
-
QUOTA_QUERY
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public int getId()obtain the ASN.1 ID of the header request.
- Returns:
- the requested ID
-
getTemplateClass
Returns a class representing the respective header request.
- Returns:
- the template class
-
getByClass
Obtain the respective header request type by using the template class.
- Parameters:
c- the template class to be identified- Returns:
- the respective constant
-