javax.net.websocket
Interface MessageHandler.AsyncText

All Superinterfaces:
MessageHandler
Enclosing interface:
MessageHandler

public static interface MessageHandler.AsyncText
extends MessageHandler

This kind of handler is called to process for text messages which may arrive in multiple parts. A single text message may consist of 0 to n calls to this method where @param last is false followed by a single call with @param last set to true. Messages do not interleave and the parts arrive in order.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.net.websocket.MessageHandler
MessageHandler.AsyncBinary, MessageHandler.AsyncText, MessageHandler.Binary, MessageHandler.BinaryStream, MessageHandler.CharacterStream, MessageHandler.DecodedObject<T>, MessageHandler.Pong, MessageHandler.Text
 
Method Summary
 void onMessagePart(String part, boolean last)
          Called when part of a text message has been received.
 

Method Detail

onMessagePart

void onMessagePart(String part,
                   boolean last)
Called when part of a text message has been received.

Parameters:
part - The fragment of the message received.
last - Whether or not this is last in the sequence of parts of the message.


Copyright © 2012. All Rights Reserved.