Class TextPartialOnMessage
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.messages.TextPartialOnMessage
-
- All Implemented Interfaces:
MessageAppender
public class TextPartialOnMessage extends java.lang.Object implements MessageAppender
Partial TEXT MessageAppender for @OnMessage
annotated methods
-
-
Field Summary
Fields Modifier and Type Field Description private JsrAnnotatedEventDriver
driver
private boolean
finished
private Utf8PartialBuilder
utf8Partial
-
Constructor Summary
Constructors Constructor Description TextPartialOnMessage(JsrAnnotatedEventDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendFrame(java.nio.ByteBuffer payload, boolean isLast)
Append the frame payload to the message.void
messageComplete()
Notification that message is to be considered complete.
-
-
-
Field Detail
-
driver
private final JsrAnnotatedEventDriver driver
-
utf8Partial
private final Utf8PartialBuilder utf8Partial
-
finished
private boolean finished
-
-
Constructor Detail
-
TextPartialOnMessage
public TextPartialOnMessage(JsrAnnotatedEventDriver driver)
-
-
Method Detail
-
appendFrame
public void appendFrame(java.nio.ByteBuffer payload, boolean isLast) throws java.io.IOException
Description copied from interface:MessageAppender
Append the frame payload to the message.- Specified by:
appendFrame
in interfaceMessageAppender
- Parameters:
payload
- the frame payload to append.isLast
- flag indicating if this is the last part of the message or not.- Throws:
java.io.IOException
- if unable to append the frame payload
-
messageComplete
public void messageComplete()
Description copied from interface:MessageAppender
Notification that message is to be considered complete.Any cleanup or final actions should be taken here.
- Specified by:
messageComplete
in interfaceMessageAppender
-
-