ContinuationWebSocketFrame Class — netty Architecture
Architecture documentation for the ContinuationWebSocketFrame class in ContinuationWebSocketFrame.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 29c1a8e4_43fe_e7a6_a863_af4a1b70c482["ContinuationWebSocketFrame"] a7ca4742_715e_0ec6_8075_0e515013df86["ContinuationWebSocketFrame.java"] 29c1a8e4_43fe_e7a6_a863_af4a1b70c482 -->|defined in| a7ca4742_715e_0ec6_8075_0e515013df86 2f78f773_38c3_5868_8232_79110a31ee7d["ContinuationWebSocketFrame()"] 29c1a8e4_43fe_e7a6_a863_af4a1b70c482 -->|method| 2f78f773_38c3_5868_8232_79110a31ee7d a0201e71_716d_b3cb_ca4e_a886452d8d54["String()"] 29c1a8e4_43fe_e7a6_a863_af4a1b70c482 -->|method| a0201e71_716d_b3cb_ca4e_a886452d8d54 15bdf29d_55d5_2025_40d3_81bfe1aa9250["ByteBuf()"] 29c1a8e4_43fe_e7a6_a863_af4a1b70c482 -->|method| 15bdf29d_55d5_2025_40d3_81bfe1aa9250
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/websocketx/ContinuationWebSocketFrame.java lines 26–137
public class ContinuationWebSocketFrame extends WebSocketFrame {
/**
* Creates a new empty continuation frame.
*/
public ContinuationWebSocketFrame() {
this(Unpooled.buffer(0));
}
/**
* Creates a new continuation frame with the specified binary data. The final fragment flag is
* set to true.
*
* @param binaryData the content of the frame.
*/
public ContinuationWebSocketFrame(ByteBuf binaryData) {
super(binaryData);
}
/**
* Creates a new continuation frame with the specified binary data.
*
* @param finalFragment
* flag indicating if this frame is the final fragment
* @param rsv
* reserved bits used for protocol extensions
* @param binaryData
* the content of the frame.
*/
public ContinuationWebSocketFrame(boolean finalFragment, int rsv, ByteBuf binaryData) {
super(finalFragment, rsv, binaryData);
}
/**
* Creates a new continuation frame with the specified text data
*
* @param finalFragment
* flag indicating if this frame is the final fragment
* @param rsv
* reserved bits used for protocol extensions
* @param text
* text content of the frame.
*/
public ContinuationWebSocketFrame(boolean finalFragment, int rsv, String text) {
this(finalFragment, rsv, fromText(text));
}
/**
* Returns the text data in this frame.
*/
public String text() {
return content().toString(CharsetUtil.UTF_8);
}
/**
* Sets the string for this frame.
*
* @param text
* text to store.
*/
private static ByteBuf fromText(String text) {
if (text == null || text.isEmpty()) {
return Unpooled.EMPTY_BUFFER;
} else {
return Unpooled.copiedBuffer(text, CharsetUtil.UTF_8);
}
}
@Override
public ContinuationWebSocketFrame copy() {
return (ContinuationWebSocketFrame) super.copy();
}
@Override
public ContinuationWebSocketFrame duplicate() {
return (ContinuationWebSocketFrame) super.duplicate();
}
@Override
public ContinuationWebSocketFrame retainedDuplicate() {
return (ContinuationWebSocketFrame) super.retainedDuplicate();
Defined In
Source
Frequently Asked Questions
What is the ContinuationWebSocketFrame class?
ContinuationWebSocketFrame is a class in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/ContinuationWebSocketFrame.java.
Where is ContinuationWebSocketFrame defined?
ContinuationWebSocketFrame is defined in codec-http/src/main/java/io/netty/handler/codec/http/websocketx/ContinuationWebSocketFrame.java at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free