Class DefaultReceiverHeadersInterceptor


  • public class DefaultReceiverHeadersInterceptor
    extends java.lang.Object
    A message interceptor that is able to add some commonly required header attributes in Synapse services.

    The DefaultReceiverHeadersInterceptor is active by default for all receiver endpoints. It can be disabled by setting 'synapse.receiver.default-headers.enabled=false'.

    • Constructor Detail

      • DefaultReceiverHeadersInterceptor

        public DefaultReceiverHeadersInterceptor​(SynapseProperties synapseProperties)
        Creates a new DefaultReceiverHeadersInterceptor with default configuration.
        Parameters:
        synapseProperties - the properties used to configure the interceptor
      • DefaultReceiverHeadersInterceptor

        public DefaultReceiverHeadersInterceptor​(SynapseProperties synapseProperties,
                                                 java.time.Clock clock)
        Creates an instance of DefaultReceiverHeadersInterceptor for testing purposes.
        Parameters:
        synapseProperties - the properties used to configure the interceptor
        clock - the clock used to generate timestamp attributes