Package de.otto.synapse.endpoint
Enum DefaultSenderHeadersInterceptor.Capability
java.lang.Object
java.lang.Enum<DefaultSenderHeadersInterceptor.Capability>
de.otto.synapse.endpoint.DefaultSenderHeadersInterceptor.Capability
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DefaultSenderHeadersInterceptor.Capability>,java.lang.constant.Constable
- Enclosing class:
- DefaultSenderHeadersInterceptor
public static enum DefaultSenderHeadersInterceptor.Capability extends java.lang.Enum<DefaultSenderHeadersInterceptor.Capability>
Capabilities of the DefaultSenderHeadersInterceptor. By default, all capablities are enabled.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description MESSAGE_IDAdd aDefaultHeaderAttr.MSG_IDto the message header.SENDER_NAMEAdd aDefaultHeaderAttr.MSG_SENDERto the message header.TIMESTAMPAdd aDefaultHeaderAttr.MSG_SENDER_TSto the message header. -
Method Summary
Modifier and Type Method Description static DefaultSenderHeadersInterceptor.CapabilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DefaultSenderHeadersInterceptor.Capability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SENDER_NAME
Add aDefaultHeaderAttr.MSG_SENDERto the message header. The name of the sender is configured using property 'synapse.sender.name' or 'spring.application.name' -
MESSAGE_ID
Add aDefaultHeaderAttr.MSG_IDto the message header. The value of the header is a UUID. -
TIMESTAMP
Add aDefaultHeaderAttr.MSG_SENDER_TSto the message header.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-