Enum Class SendResponse.HeaderStrategy
java.lang.Object
java.lang.Enum<SendResponse.HeaderStrategy>
org.jpos.transaction.participant.SendResponse.HeaderStrategy
- All Implemented Interfaces:
Serializable, Comparable<SendResponse.HeaderStrategy>, Constable
- Enclosing class:
SendResponse
Selects how the response message's ISO header is populated before sending.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCopies the request header onto the response.Leaves whatever header the response already carries (default).Clears the response header so the channel emits no header bytes. -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleHeader(ISOMsg m, ISOMsg r) Adjustsr's header based on the requestm.static SendResponse.HeaderStrategyReturns the enum constant of this class with the specified name.static SendResponse.HeaderStrategy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRESERVE_ORIGINAL
Copies the request header onto the response. -
PRESERVE_RESPONSE
Leaves whatever header the response already carries (default). -
SET_TO_NULL
Clears the response header so the channel emits no header bytes.
-
-
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
-
handleHeader
-