Class MessagePart
java.lang.Object
org.apache.tomcat.websocket.MessagePart
Represents a part of a WebSocket message.
-
Method Summary
Modifier and TypeMethodDescriptionlongGet the blocking write timeout expiry.Get the end handler.Get the intermediate handler.byteGet the operation code.Get the payload.intgetRsv()Get the reserved bits.booleanisFin()Check if this is the final part.voidsetEndHandler(SendHandler endHandler) Set the end handler.
-
Method Details
-
isFin
public boolean isFin()Check if this is the final part.- Returns:
- true if final
-
getRsv
public int getRsv()Get the reserved bits.- Returns:
- the reserved bits
-
getOpCode
public byte getOpCode()Get the operation code.- Returns:
- the operation code
-
getPayload
-
getIntermediateHandler
Get the intermediate handler.- Returns:
- the intermediate handler
-
getEndHandler
-
setEndHandler
Set the end handler.- Parameters:
endHandler- the end handler
-
getBlockingWriteTimeoutExpiry
public long getBlockingWriteTimeoutExpiry()Get the blocking write timeout expiry.- Returns:
- the blocking write timeout expiry
-