acceptOutboundMessage() — netty Function Reference
Architecture documentation for the acceptOutboundMessage() function in PerMessageDeflateEncoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7fa19f35_10d6_2693_6ef0_b240519d2d94["acceptOutboundMessage()"] 93003064_514e_ab61_d358_fa9c1acbd065["PerMessageDeflateEncoder"] 7fa19f35_10d6_2693_6ef0_b240519d2d94 -->|defined in| 93003064_514e_ab61_d358_fa9c1acbd065 ee7484dc_8cbc_c856_4d29_fc5fe13bff90["rsv()"] 7fa19f35_10d6_2693_6ef0_b240519d2d94 -->|calls| ee7484dc_8cbc_c856_4d29_fc5fe13bff90 style 7fa19f35_10d6_2693_6ef0_b240519d2d94 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateEncoder.java lines 59–76
@Override
public boolean acceptOutboundMessage(Object msg) throws Exception {
if (!super.acceptOutboundMessage(msg)) {
return false;
}
WebSocketFrame wsFrame = (WebSocketFrame) msg;
if (extensionEncoderFilter().mustSkip(wsFrame)) {
if (compressing) {
throw new IllegalStateException("Cannot skip per message deflate encoder, compression in progress");
}
return false;
}
return ((wsFrame instanceof TextWebSocketFrame || wsFrame instanceof BinaryWebSocketFrame) &&
(wsFrame.rsv() & WebSocketExtension.RSV1) == 0) ||
(wsFrame instanceof ContinuationWebSocketFrame && compressing);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does acceptOutboundMessage() do?
acceptOutboundMessage() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateEncoder.java.
Where is acceptOutboundMessage() defined?
acceptOutboundMessage() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/extensions/compression/PerMessageDeflateEncoder.java at line 59.
What does acceptOutboundMessage() call?
acceptOutboundMessage() calls 1 function(s): rsv.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free