Class ContinuationFrame
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.WebSocketFrame
-
- org.eclipse.jetty.websocket.common.frames.DataFrame
-
- org.eclipse.jetty.websocket.common.frames.ContinuationFrame
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.websocket.api.extensions.Frame
Frame.Type
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
data, finRsvOp, mask, masked
-
-
Constructor Summary
Constructors Constructor Description ContinuationFrame()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Frame.TypegetType()ContinuationFramesetPayload(byte[] buf)ContinuationFramesetPayload(java.lang.String message)ContinuationFramesetPayload(java.nio.ByteBuffer buf)Set the data payload.-
Methods inherited from class org.eclipse.jetty.websocket.common.frames.DataFrame
assertValid, isControlFrame, isDataFrame, setIsContinuation
-
Methods inherited from class org.eclipse.jetty.websocket.common.WebSocketFrame
copy, copyHeaders, copyHeaders, equals, getMask, getOpCode, getPayload, getPayloadAsUTF8, getPayloadLength, hashCode, hasPayload, isFin, isLast, isMasked, isRsv1, isRsv2, isRsv3, reset, setFin, setMask, setMasked, setOpCode, setRsv1, setRsv2, setRsv3, toString
-
-
-
-
Method Detail
-
setPayload
public ContinuationFrame setPayload(java.nio.ByteBuffer buf)
Description copied from class:WebSocketFrameSet the data payload.The provided buffer will be used as is, no copying of bytes performed.
The provided buffer should be flipped and ready to READ from.
- Overrides:
setPayloadin classWebSocketFrame- Parameters:
buf- the bytebuffer to set- Returns:
- the frame itself
-
setPayload
public ContinuationFrame setPayload(byte[] buf)
-
setPayload
public ContinuationFrame setPayload(java.lang.String message)
-
getType
public Frame.Type getType()
- Specified by:
getTypein interfaceFrame- Overrides:
getTypein classWebSocketFrame
-
-