Class SimpleTextMessage
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.message.SimpleTextMessage
-
- All Implemented Interfaces:
MessageAppender
- Direct Known Subclasses:
TextWholeMessage
public class SimpleTextMessage extends java.lang.Object implements MessageAppender
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
finished
protected Utf8StringBuilder
utf
-
Constructor Summary
Constructors Constructor Description SimpleTextMessage(EventDriver onEvent)
-
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
-
utf
protected final Utf8StringBuilder utf
-
finished
protected boolean finished
-
-
Constructor Detail
-
SimpleTextMessage
public SimpleTextMessage(EventDriver onEvent)
-
-
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
-
-