protocolViolation() — netty Function Reference
Architecture documentation for the protocolViolation() function in Utf8FrameValidator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 07b6a241_43f6_47fc_892d_87fcedabf99a["protocolViolation()"] 703786e3_a739_d459_7ab0_6451a2d19cdf["Utf8FrameValidator"] 07b6a241_43f6_47fc_892d_87fcedabf99a -->|defined in| 703786e3_a739_d459_7ab0_6451a2d19cdf 95417fd6_697c_ee9f_be0e_5cdc60d7350f["channelRead()"] 95417fd6_697c_ee9f_be0e_5cdc60d7350f -->|calls| 07b6a241_43f6_47fc_892d_87fcedabf99a style 07b6a241_43f6_47fc_892d_87fcedabf99a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/Utf8FrameValidator.java lines 108–123
private void protocolViolation(ChannelHandlerContext ctx, WebSocketFrame frame,
CorruptedWebSocketFrameException ex) {
frame.release();
if (closeOnProtocolViolation && ctx.channel().isOpen()) {
WebSocketCloseStatus closeStatus = ex.closeStatus();
String reasonText = ex.getMessage();
if (reasonText == null) {
reasonText = closeStatus.reasonText();
}
CloseWebSocketFrame closeFrame = new CloseWebSocketFrame(closeStatus.code(), reasonText);
ctx.writeAndFlush(closeFrame).addListener(ChannelFutureListener.CLOSE);
}
throw ex;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does protocolViolation() do?
protocolViolation() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/Utf8FrameValidator.java.
Where is protocolViolation() defined?
protocolViolation() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/Utf8FrameValidator.java at line 108.
What calls protocolViolation()?
protocolViolation() is called by 1 function(s): channelRead.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free