testWebSocketServerHandshakeException() — netty Function Reference
Architecture documentation for the testWebSocketServerHandshakeException() function in WebSocketServerHandshakerTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 7692aa17_7240_e214_e3b8_46d08462a73b["testWebSocketServerHandshakeException()"] 4971cbc5_410e_2355_1704_f949800b95fc["WebSocketServerHandshakerTest"] 7692aa17_7240_e214_e3b8_46d08462a73b -->|defined in| 4971cbc5_410e_2355_1704_f949800b95fc style 7692aa17_7240_e214_e3b8_46d08462a73b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshakerTest.java lines 105–122
@Test
public void testWebSocketServerHandshakeException() {
WebSocketServerHandshaker serverHandshaker = newHandshaker("ws://example.com/chat",
"chat", WebSocketDecoderConfig.DEFAULT);
FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET,
"ws://example.com/chat");
request.headers().set("x-client-header", "value");
try {
serverHandshaker.handshake(null, request, null, null);
} catch (WebSocketServerHandshakeException exception) {
assertNotNull(exception.getMessage());
assertEquals(request.headers(), exception.request().headers());
assertEquals(HttpMethod.GET, exception.request().method());
} finally {
request.release();
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testWebSocketServerHandshakeException() do?
testWebSocketServerHandshakeException() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshakerTest.java.
Where is testWebSocketServerHandshakeException() defined?
testWebSocketServerHandshakeException() is defined in codec-http/src/test/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshakerTest.java at line 105.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free