Class MessageCapture


  • public class MessageCapture
    extends Object
    Capture a message.
    • Constructor Detail

      • MessageCapture

        public MessageCapture​(org.slf4j.Logger logger,
                              boolean captureEntity,
                              boolean captureContext,
                              int maxEntityLength,
                              KeyValueProcessor headerProcessor,
                              KeyValueProcessor attributeProcessor,
                              KeyValueProcessor trailerProcessor)
        Builds a new MessageCapture.
        Parameters:
        logger - The logger used for displaying messages.
        captureEntity - capture the entity content (if not binary)
        captureContext - capture the context content (excluding request and response object) as json
        maxEntityLength - Set the maximum entity length to capture if captureEntity is enabled.
        headerProcessor - The KeyValueProcessor to apply to header values.
        attributeProcessor - The KeyValueProcessor to apply to attribute values.
        trailerProcessor - The KeyValueProcessor to apply to trailer values.