validate() — netty Function Reference
Architecture documentation for the validate() function in CombinedChannelDuplexHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD c829476f_9743_1640_1764_a127fa4e13a8["validate()"] d9e90966_2763_e0d8_7a2c_c3339937a5a7["CombinedChannelDuplexHandler"] c829476f_9743_1640_1764_a127fa4e13a8 -->|defined in| d9e90966_2763_e0d8_7a2c_c3339937a5a7 26381b7a_54f3_93c6_3580_82181da58ae7["init()"] 26381b7a_54f3_93c6_3580_82181da58ae7 -->|calls| c829476f_9743_1640_1764_a127fa4e13a8 26381b7a_54f3_93c6_3580_82181da58ae7["init()"] c829476f_9743_1640_1764_a127fa4e13a8 -->|calls| 26381b7a_54f3_93c6_3580_82181da58ae7 style c829476f_9743_1640_1764_a127fa4e13a8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/CombinedChannelDuplexHandler.java lines 74–94
private void validate(I inboundHandler, O outboundHandler) {
if (this.inboundHandler != null) {
throw new IllegalStateException(
"init() can not be invoked if " + CombinedChannelDuplexHandler.class.getSimpleName() +
" was constructed with non-default constructor.");
}
ObjectUtil.checkNotNull(inboundHandler, "inboundHandler");
ObjectUtil.checkNotNull(outboundHandler, "outboundHandler");
if (inboundHandler instanceof ChannelOutboundHandler) {
throw new IllegalArgumentException(
"inboundHandler must not implement " +
ChannelOutboundHandler.class.getSimpleName() + " to get combined.");
}
if (outboundHandler instanceof ChannelInboundHandler) {
throw new IllegalArgumentException(
"outboundHandler must not implement " +
ChannelInboundHandler.class.getSimpleName() + " to get combined.");
}
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does validate() do?
validate() is a function in the netty codebase, defined in transport/src/main/java/io/netty/channel/CombinedChannelDuplexHandler.java.
Where is validate() defined?
validate() is defined in transport/src/main/java/io/netty/channel/CombinedChannelDuplexHandler.java at line 74.
What does validate() call?
validate() calls 1 function(s): init.
What calls validate()?
validate() is called by 1 function(s): init.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free