Home / Class/ CloseNoOpServerProtocolHandler Class — netty Architecture

CloseNoOpServerProtocolHandler Class — netty Architecture

Architecture documentation for the CloseNoOpServerProtocolHandler class in WebSocketHandshakeHandOverTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  fecf0c09_3141_9568_3bb2_4fafde2dd362["CloseNoOpServerProtocolHandler"]
  08a6f2d2_d250_b19f_7a09_7e8fcee2696e["WebSocketHandshakeHandOverTest.java"]
  fecf0c09_3141_9568_3bb2_4fafde2dd362 -->|defined in| 08a6f2d2_d250_b19f_7a09_7e8fcee2696e
  316d52ff_05be_e73e_531d_de0a7d8b4907["CloseNoOpServerProtocolHandler()"]
  fecf0c09_3141_9568_3bb2_4fafde2dd362 -->|method| 316d52ff_05be_e73e_531d_de0a7d8b4907
  e0faae48_108a_20bc_6802_25f95f958e50["decode()"]
  fecf0c09_3141_9568_3bb2_4fafde2dd362 -->|method| e0faae48_108a_20bc_6802_25f95f958e50

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketHandshakeHandOverTest.java lines 55–72

    private final class CloseNoOpServerProtocolHandler extends WebSocketServerProtocolHandler {
        CloseNoOpServerProtocolHandler(String websocketPath) {
            super(WebSocketServerProtocolConfig.newBuilder()
                .websocketPath(websocketPath)
                .allowExtensions(false)
                .sendCloseFrame(null)
                .build());
        }

        @Override
        protected void decode(ChannelHandlerContext ctx, WebSocketFrame frame, List<Object> out) throws Exception {
            if (frame instanceof CloseWebSocketFrame) {
                serverReceivedCloseHandshake = true;
                return;
            }
            super.decode(ctx, frame, out);
        }
    }

Frequently Asked Questions

What is the CloseNoOpServerProtocolHandler class?
CloseNoOpServerProtocolHandler is a class in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketHandshakeHandOverTest.java.
Where is CloseNoOpServerProtocolHandler defined?
CloseNoOpServerProtocolHandler is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketHandshakeHandOverTest.java at line 55.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free