Home / Function/ isWebSocketPath() — netty Function Reference

isWebSocketPath() — netty Function Reference

Architecture documentation for the isWebSocketPath() function in WebSocketServerProtocolHandshakeHandler.java from the netty codebase.

Function java ProtocolCodecs HTTP calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  cd048d62_9bdc_867a_c433_c9a6c433bed0["isWebSocketPath()"]
  7859e8c2_d3fe_97c8_edc5_e54ff6dd5668["WebSocketServerProtocolHandshakeHandler"]
  cd048d62_9bdc_867a_c433_c9a6c433bed0 -->|defined in| 7859e8c2_d3fe_97c8_edc5_e54ff6dd5668
  da9f8d7e_bece_8a5d_bade_9cfafa7bf590["channelRead()"]
  da9f8d7e_bece_8a5d_bade_9cfafa7bf590 -->|calls| cd048d62_9bdc_867a_c433_c9a6c433bed0
  fe09eb27_db78_5286_5fac_98f9598fa06b["checkNextUri()"]
  cd048d62_9bdc_867a_c433_c9a6c433bed0 -->|calls| fe09eb27_db78_5286_5fac_98f9598fa06b
  style cd048d62_9bdc_867a_c433_c9a6c433bed0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler.java lines 113–119

    private boolean isWebSocketPath(HttpRequest req) {
        String websocketPath = serverConfig.websocketPath();
        String uri = req.uri();
        return serverConfig.checkStartsWith()
                ? uri.startsWith(websocketPath) && ("/".equals(websocketPath) || checkNextUri(uri, websocketPath))
                : uri.equals(websocketPath);
    }

Subdomains

Called By

Frequently Asked Questions

What does isWebSocketPath() do?
isWebSocketPath() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler.java.
Where is isWebSocketPath() defined?
isWebSocketPath() is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler.java at line 113.
What does isWebSocketPath() call?
isWebSocketPath() calls 1 function(s): checkNextUri.
What calls isWebSocketPath()?
isWebSocketPath() 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