T
- The type of message to handlepublic abstract class PojoMessageHandlerWholeBase<T> extends PojoMessageHandlerBase<T> implements MessageHandler.Whole<T>
MessageHandler.Partial<T>, MessageHandler.Whole<T>
convert, indexPayload, indexSession, maxMessageSize, method, params, pojo, session
Constructor and Description |
---|
PojoMessageHandlerWholeBase(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexSession,
long maxMessageSize) |
Modifier and Type | Method and Description |
---|---|
protected Object |
convert(T message) |
protected abstract Object |
decode(T message) |
protected abstract void |
onClose() |
void |
onMessage(T message)
Called when a whole message is available to be processed.
|
getMaxMessageSize, getWrappedHandler, handlePojoMethodException, processResult
public final void onMessage(T message)
javax.websocket.MessageHandler.Whole
onMessage
in interface MessageHandler.Whole<T>
message
- The messageprotected abstract Object decode(T message) throws DecodeException
DecodeException
protected abstract void onClose()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.