Class SimpleTextMessage
java.lang.Object
org.eclipse.jetty.websocket.common.message.SimpleTextMessage
- All Implemented Interfaces:
MessageAppender
- Direct Known Subclasses:
TextWholeMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
private final EventDriver
private int
protected final org.eclipse.jetty.util.Utf8StringBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendFrame
(ByteBuffer payload, boolean isLast) Append the frame payload to the message.void
Notification that message is to be considered complete.
-
Field Details
-
onEvent
-
utf
protected final org.eclipse.jetty.util.Utf8StringBuilder utf -
size
private int size -
finished
protected boolean finished
-
-
Constructor Details
-
SimpleTextMessage
-
-
Method Details
-
appendFrame
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:
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
-