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