public class ContinuationWebSocketFrame extends WebSocketFrame
Constructor and Description |
---|
ContinuationWebSocketFrame()
Creates a new empty continuation frame.
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
io.netty.buffer.ByteBuf binaryData)
Creates a new continuation frame with the specified binary data.
|
ContinuationWebSocketFrame(boolean finalFragment,
int rsv,
String text)
Creates a new continuation frame with the specified text data
|
ContinuationWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new continuation frame with the specified binary data.
|
Modifier and Type | Method and Description |
---|---|
ContinuationWebSocketFrame |
copy() |
ContinuationWebSocketFrame |
duplicate() |
ContinuationWebSocketFrame |
replace(io.netty.buffer.ByteBuf content) |
ContinuationWebSocketFrame |
retain() |
ContinuationWebSocketFrame |
retain(int increment) |
ContinuationWebSocketFrame |
retainedDuplicate() |
String |
text()
Returns the text data in this frame.
|
ContinuationWebSocketFrame |
touch() |
ContinuationWebSocketFrame |
touch(Object hint) |
isFinalFragment, rsv, toString
public ContinuationWebSocketFrame()
public ContinuationWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
binaryData
- the content of the frame.public ContinuationWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame.public ContinuationWebSocketFrame(boolean finalFragment, int rsv, String text)
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionstext
- text content of the frame.public String text()
public ContinuationWebSocketFrame copy()
copy
in interface io.netty.buffer.ByteBufHolder
copy
in class WebSocketFrame
public ContinuationWebSocketFrame duplicate()
duplicate
in interface io.netty.buffer.ByteBufHolder
duplicate
in class WebSocketFrame
public ContinuationWebSocketFrame retainedDuplicate()
retainedDuplicate
in interface io.netty.buffer.ByteBufHolder
retainedDuplicate
in class WebSocketFrame
public ContinuationWebSocketFrame replace(io.netty.buffer.ByteBuf content)
replace
in interface io.netty.buffer.ByteBufHolder
replace
in class WebSocketFrame
public ContinuationWebSocketFrame retain()
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public ContinuationWebSocketFrame retain(int increment)
retain
in interface io.netty.buffer.ByteBufHolder
retain
in interface io.netty.util.ReferenceCounted
retain
in class WebSocketFrame
public ContinuationWebSocketFrame touch()
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class WebSocketFrame
public ContinuationWebSocketFrame touch(Object hint)
touch
in interface io.netty.buffer.ByteBufHolder
touch
in interface io.netty.util.ReferenceCounted
touch
in class WebSocketFrame
Copyright © 2008–2023 The Netty Project. All rights reserved.