matches() — netty Function Reference
Architecture documentation for the matches() function in LoggingHandlerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ba4c0274_0c17_5732_9ccc_2105f885e3f6["matches()"] e02d82f6_2956_3175_aa87_638b15652161["RegexLogMatcher"] ba4c0274_0c17_5732_9ccc_2105f885e3f6 -->|defined in| e02d82f6_2956_3175_aa87_638b15652161 style ba4c0274_0c17_5732_9ccc_2105f885e3f6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java lines 307–317
@Override
@SuppressWarnings("DynamicRegexReplaceableByCompiledPattern")
public boolean matches(ILoggingEvent actual) {
// Match only the first line to skip the validation of hex-dump format.
actualMsg = actual.getMessage().split("(?s)[\\r\\n]+")[0];
if (actualMsg.matches(expected)) {
// The presence of a newline implies a hex-dump was logged
return actual.getMessage().contains(NEWLINE) == shouldContainNewline;
}
return false;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does matches() do?
matches() is a function in the netty codebase, defined in handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java.
Where is matches() defined?
matches() is defined in handler/src/test/java/io/netty/handler/logging/LoggingHandlerTest.java at line 307.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free