Package com.oss.asn1
Enum Class ContentHandler.Response
- All Implemented Interfaces:
Serializable
,Comparable<ContentHandler.Response>
,Constable
- Enclosing class:
- ContentHandler
Return codes of event handling methods of a partial decoding handler classes.
Event handling methods, also known as call backs, are implemented by the user's handler classes and are invoked by the partial decoding procedure when certain fields (the fields marked with InfoCallback or DataCallback directives) are encountered in the encoded data. Return code of a callback method specifies an action to be taken by the decoder. There are the following possible actions:
- CONTINUE - proceed with partial decoding procedure, until other call back is invoked or PDU ends.
- SKIP - skip to the end of current field if returned from "begin field" callback, or skip to the end of PDU if returned from "end field" callback.
- ABORT - end the partial decoding procedure immediately.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that partial decoding procedure should be terminated immediately.Specifies that partial decoding should be continued in a normal way.Specifies that partial decoding should be continued with suppressing all other callbacks either upto the end of current field or upto the whole PDU end, depending on whether the SKIP response is returned from a "begin" callback or from an "end" callback. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentHandler.Response
Returns the enum constant of this class with the specified name.static ContentHandler.Response[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CONTINUE
Specifies that partial decoding should be continued in a normal way. -
SKIP
Specifies that partial decoding should be continued with suppressing all other callbacks either upto the end of current field or upto the whole PDU end, depending on whether the SKIP response is returned from a "begin" callback or from an "end" callback. -
ABORT
Specifies that partial decoding procedure should be terminated immediately.
-
-
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
-