Class MessagePart
java.lang.Object
org.apache.tomcat.websocket.MessagePart
Represents a part of a WebSocket message.
-
Method Summary
Modifier and TypeMethodDescriptionGet the end handler.Get the intermediate handler.byteGet the operation code.Get the payload.intgetRsv()Get the reserved bits.longGet the write timeout expiry.booleanDetermine if the write is blocking.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
-
isBlocking
public boolean isBlocking()Determine if the write is blocking.- Returns:
trueif the write is blocking, otherwisefalse
-
getWriteTimeoutExpiry
public long getWriteTimeoutExpiry()Get the write timeout expiry.- Returns:
- the write timeout expiry
-