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>
- Enclosing class:
- DefaultSenderHeadersInterceptor
public static enum DefaultSenderHeadersInterceptor.Capability extends java.lang.Enum<DefaultSenderHeadersInterceptor.Capability>
Capabilities of the DefaultSenderHeadersInterceptor. By default, all capablities are enabled.
-
-
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
All Methods Static Methods Concrete Methods 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 Detail
-
SENDER_NAME
public static final DefaultSenderHeadersInterceptor.Capability 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
public static final DefaultSenderHeadersInterceptor.Capability MESSAGE_ID
Add aDefaultHeaderAttr.MSG_IDto the message header. The value of the header is a UUID.
-
TIMESTAMP
public static final DefaultSenderHeadersInterceptor.Capability TIMESTAMP
Add aDefaultHeaderAttr.MSG_SENDER_TSto the message header.
-
-
Method Detail
-
values
public static DefaultSenderHeadersInterceptor.Capability[] 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 (DefaultSenderHeadersInterceptor.Capability c : DefaultSenderHeadersInterceptor.Capability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultSenderHeadersInterceptor.Capability valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-