-
- All Implemented Interfaces:
-
mu.KLoggable
public class HeaderMatcher extends KLogging
-
-
Field Summary
Fields Modifier and Type Field Description private final KLoggerloggerpublic final static HeaderMatcherINSTANCE
-
Method Summary
Modifier and Type Method Description final HeaderMismatchmatchContentType(String expected, String actual)final static Map<String, String>parseParameters(List<String> values)final StringstripWhiteSpaceAfterCommas(String str)final static HeaderMismatchcompareHeader(String headerKey, String expected, String actual, MatchingContext context)Compares the expected header value to the actual, delegating to any matching rules if present KLoggergetLogger()-
-
Method Detail
-
matchContentType
final HeaderMismatch matchContentType(String expected, String actual)
-
stripWhiteSpaceAfterCommas
final String stripWhiteSpaceAfterCommas(String str)
-
compareHeader
final static HeaderMismatch compareHeader(String headerKey, String expected, String actual, MatchingContext context)
Compares the expected header value to the actual, delegating to any matching rules if present
-
getLogger
KLogger getLogger()
-
-
-
-