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