Class Masker
java.lang.Object
io.undertow.websockets.core.protocol.version07.Masker
- All Implemented Interfaces:
ChannelFunction
- Author:
- Norman Maurer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
afterRead
(ByteBuffer buf, int position, int length) Is called on theByteBuffer
after a read operation completesvoid
beforeWrite
(ByteBuffer buf, int position, int length) Is called on theByteBuffer
before a write operation completesvoid
complete()
Is called to complete theChannelFunction
.void
newFrame
(FrameHeaderData headerData) void
setMaskingKey
(int maskingKey)
-
Method Details
-
setMaskingKey
public void setMaskingKey(int maskingKey) -
newFrame
- Specified by:
newFrame
in interfaceChannelFunction
-
afterRead
Description copied from interface:ChannelFunction
Is called on theByteBuffer
after a read operation completes- Specified by:
afterRead
in interfaceChannelFunction
- Parameters:
buf
- theByteBuffer
to operate onposition
- the index in theByteBuffer
to start fromlength
- the number of bytes to operate on
-
beforeWrite
Description copied from interface:ChannelFunction
Is called on theByteBuffer
before a write operation completes- Specified by:
beforeWrite
in interfaceChannelFunction
- Parameters:
buf
- theByteBuffer
to operate onposition
- the index in theByteBuffer
to start fromlength
- the number of bytes to operate on
-
complete
public void complete()Description copied from interface:ChannelFunction
Is called to complete theChannelFunction
. Access it after complete is called may result in unexpected behavior.- Specified by:
complete
in interfaceChannelFunction
-