Interface PulsarHeaderMatcher

All Known Implementing Classes:
PulsarHeaderMatcher.NeverMatch, PulsarHeaderMatcher.PatternMatch

public interface PulsarHeaderMatcher
Defines the contract for matching message headers.

Used by the header mapper to determine whether an incoming or outgoing message header should be included in the target.

Author:
Chris Bono
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A matcher that never matches a set of headers.
    static class 
    A pattern-based header matcher that matches if the specified header matches the specified simple pattern.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determine if this matcher is a negative matcher where a match means that the header should not be included.
    boolean
    matchHeader(String headerName)
    Determine if the header matches.
  • Method Details

    • matchHeader

      boolean matchHeader(String headerName)
      Determine if the header matches.
      Parameters:
      headerName - the header name
      Returns:
      whether the header matches
    • isNegated

      boolean isNegated()
      Determine if this matcher is a negative matcher where a match means that the header should not be included.
      Returns:
      whether this matcher is a negative matcher