Example usage for org.springframework.integration.support.utils PatternMatchUtils smartMatchIgnoreCase

List of usage examples for org.springframework.integration.support.utils PatternMatchUtils smartMatchIgnoreCase

Introduction

In this page you can find the example usage for org.springframework.integration.support.utils PatternMatchUtils smartMatchIgnoreCase.

Prototype

public static Boolean smartMatchIgnoreCase(String str, String... patterns) 

Source Link

Document

Pattern match against the supplied patterns ignoring case; also supports negated ('!') patterns.

Usage

From source file:org.springframework.integration.support.json.EmbeddedJsonHeadersMessageMapper.java

private boolean matchHeader(String header) {
    return Boolean.TRUE.equals(this.caseSensitive ? PatternMatchUtils.smartMatch(header, this.headerPatterns)
            : PatternMatchUtils.smartMatchIgnoreCase(header, this.headerPatterns));
}