handlerAdded() — netty Function Reference
Architecture documentation for the handlerAdded() function in WebSocketServerProtocolHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 15bda771_3a9c_e6aa_7fcd_ea586cfd059b["handlerAdded()"] 24d9f96e_3f70_9b0f_3941_7e5455fcbe3b["WebSocketServerProtocolHandler"] 15bda771_3a9c_e6aa_7fcd_ea586cfd059b -->|defined in| 24d9f96e_3f70_9b0f_3941_7e5455fcbe3b style 15bda771_3a9c_e6aa_7fcd_ea586cfd059b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler.java lines 220–233
@Override
public void handlerAdded(ChannelHandlerContext ctx) {
ChannelPipeline cp = ctx.pipeline();
if (cp.get(WebSocketServerProtocolHandshakeHandler.class) == null) {
// Add the WebSocketHandshakeHandler before this one.
cp.addBefore(ctx.name(), WebSocketServerProtocolHandshakeHandler.class.getName(),
new WebSocketServerProtocolHandshakeHandler(serverConfig));
}
if (serverConfig.decoderConfig().withUTF8Validator() && cp.get(Utf8FrameValidator.class) == null) {
// Add the UFT8 checking before this one.
cp.addBefore(ctx.name(), Utf8FrameValidator.class.getName(),
new Utf8FrameValidator(serverConfig.decoderConfig().closeOnProtocolViolation()));
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does handlerAdded() do?
handlerAdded() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler.java.
Where is handlerAdded() defined?
handlerAdded() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandler.java at line 220.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free