StompFrame() — netty Function Reference
Architecture documentation for the StompFrame() function in StompChatHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 044018ea_46d1_75d7_13e0_1ebec8aaf9c9["StompFrame()"] f937e446_8aba_2036_93fc_8020adb1953f["StompChatHandler"] 044018ea_46d1_75d7_13e0_1ebec8aaf9c9 -->|defined in| f937e446_8aba_2036_93fc_8020adb1953f style 044018ea_46d1_75d7_13e0_1ebec8aaf9c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java lines 180–194
private static StompFrame transformToMessage(StompFrame sendFrame, StompSubscription subscription) {
StompFrame messageFrame = new DefaultStompFrame(StompCommand.MESSAGE, sendFrame.content().retainedDuplicate());
String id = UUID.randomUUID().toString();
messageFrame.headers()
.set(MESSAGE_ID, id)
.set(SUBSCRIPTION, subscription.id())
.set(CONTENT_LENGTH, Integer.toString(messageFrame.content().readableBytes()));
CharSequence contentType = sendFrame.headers().get(CONTENT_TYPE);
if (contentType != null) {
messageFrame.headers().set(CONTENT_TYPE, contentType);
}
return messageFrame;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does StompFrame() do?
StompFrame() is a function in the netty codebase, defined in example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java.
Where is StompFrame() defined?
StompFrame() is defined in example/src/main/java/io/netty/example/stomp/websocket/StompChatHandler.java at line 180.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free