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