org.apache.tomcat.websocket.pojo
Class PojoMessageHandlerPartialBase<T>
java.lang.Object
org.apache.tomcat.websocket.pojo.PojoMessageHandlerBase<T>
org.apache.tomcat.websocket.pojo.PojoMessageHandlerPartialBase<T>
- Type Parameters:
T
- The type of message to handle
- All Implemented Interfaces:
- MessageHandler, MessageHandler.Partial<T>, WrappedMessageHandler
- Direct Known Subclasses:
- PojoMessageHandlerPartialBinary, PojoMessageHandlerPartialText
public abstract class PojoMessageHandlerPartialBase<T>
- extends PojoMessageHandlerBase<T>
- implements MessageHandler.Partial<T>
Common implementation code for the POJO partial message handlers. All
the real work is done in this class and in the superclass.
Method Summary |
void |
onMessage(T message,
boolean last)
Called when part of a message is available to be processed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PojoMessageHandlerPartialBase
public PojoMessageHandlerPartialBase(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexBoolean,
int indexSession,
long maxMessageSize)
onMessage
public final void onMessage(T message,
boolean last)
- Description copied from interface:
javax.websocket.MessageHandler.Partial
- Called when part of a message is available to be processed.
- Specified by:
onMessage
in interface MessageHandler.Partial<T>
- Parameters:
message
- The message partlast
- true
if this is the last part of
this message, else false
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.