Interface HeaderFilterStrategy


public interface HeaderFilterStrategy
Interface to allow plug-able implementation to filter header to and from Camel message.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    The direction is either IN or OUT.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    applyFilterToCamelHeaders(String headerName, Object headerValue, Exchange exchange)
    Applies filtering logic to Camel Message header that is going to be copied to target message such as CXF and JMS message.
    boolean
    applyFilterToExternalHeaders(String headerName, Object headerValue, Exchange exchange)
    Applies filtering logic to an external message header such as CXF and JMS message that is going to be copied to Camel message header.
  • Method Details

    • applyFilterToCamelHeaders

      boolean applyFilterToCamelHeaders(String headerName, Object headerValue, Exchange exchange)
      Applies filtering logic to Camel Message header that is going to be copied to target message such as CXF and JMS message.

      It returns true if the filtering logic return a match. Otherwise, it returns false. A match means the header should be excluded.

      Parameters:
      headerName - the header name
      headerValue - the header value
      exchange - the context to perform filtering
      Returns:
      true if this header should be filtered (skipped).
    • applyFilterToExternalHeaders

      boolean applyFilterToExternalHeaders(String headerName, Object headerValue, Exchange exchange)
      Applies filtering logic to an external message header such as CXF and JMS message that is going to be copied to Camel message header.

      It returns true if the filtering logic return a match. Otherwise, it returns false. A match means the header should be excluded.

      Parameters:
      headerName - the header name
      headerValue - the header value
      exchange - the context to perform filtering
      Returns:
      true if this header should be filtered (skipped).