Class ContinuationWebSocketFrame
- java.lang.Object
-
- io.netty.buffer.DefaultByteBufHolder
-
- io.netty.handler.codec.http.websocketx.WebSocketFrame
-
- io.netty.handler.codec.http.websocketx.ContinuationWebSocketFrame
-
- All Implemented Interfaces:
io.netty.buffer.ByteBufHolder
,io.netty.util.ReferenceCounted
public class ContinuationWebSocketFrame extends WebSocketFrame
Web Socket continuation frame containing continuation text or binary data. This is used for fragmented messages where the contents of a messages is contained more than 1 frame.
-
-
Constructor Summary
Constructors Constructor 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 dataContinuationWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new continuation frame with the specified binary data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class io.netty.handler.codec.http.websocketx.WebSocketFrame
isFinalFragment, rsv, toString
-
-
-
-
Constructor Detail
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame()
Creates a new empty continuation frame.
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame(io.netty.buffer.ByteBuf binaryData)
Creates a new continuation frame with the specified binary data. The final fragment flag is set to true.- Parameters:
binaryData
- the content of the frame.
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame(boolean finalFragment, int rsv, io.netty.buffer.ByteBuf binaryData)
Creates a new continuation frame with the specified binary data.- Parameters:
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionsbinaryData
- the content of the frame.
-
ContinuationWebSocketFrame
public ContinuationWebSocketFrame(boolean finalFragment, int rsv, String text)
Creates a new continuation frame with the specified text data- Parameters:
finalFragment
- flag indicating if this frame is the final fragmentrsv
- reserved bits used for protocol extensionstext
- text content of the frame.
-
-
Method Detail
-
text
public String text()
Returns the text data in this frame.
-
copy
public ContinuationWebSocketFrame copy()
- Specified by:
copy
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
copy
in classWebSocketFrame
-
duplicate
public ContinuationWebSocketFrame duplicate()
- Specified by:
duplicate
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
duplicate
in classWebSocketFrame
-
retainedDuplicate
public ContinuationWebSocketFrame retainedDuplicate()
- Specified by:
retainedDuplicate
in interfaceio.netty.buffer.ByteBufHolder
- Overrides:
retainedDuplicate
in classWebSocketFrame
-
replace
public ContinuationWebSocketFrame replace(io.netty.buffer.ByteBuf content)
- Specified by:
replace
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
replace
in classWebSocketFrame
-
retain
public ContinuationWebSocketFrame retain()
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Overrides:
retain
in classWebSocketFrame
-
retain
public ContinuationWebSocketFrame retain(int increment)
- Specified by:
retain
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
retain
in interfaceio.netty.util.ReferenceCounted
- Overrides:
retain
in classWebSocketFrame
-
touch
public ContinuationWebSocketFrame touch()
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Overrides:
touch
in classWebSocketFrame
-
touch
public ContinuationWebSocketFrame touch(Object hint)
- Specified by:
touch
in interfaceio.netty.buffer.ByteBufHolder
- Specified by:
touch
in interfaceio.netty.util.ReferenceCounted
- Overrides:
touch
in classWebSocketFrame
-
-