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(java.lang.Object pojo,
java.lang.reflect.Method method,
Session session,
java.lang.Object[] params,
int indexPayload,
boolean convert,
int indexSession,
long maxMessageSize) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
convert(T message) |
protected abstract java.lang.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 PojoMessageHandlerWholeBase(java.lang.Object pojo, java.lang.reflect.Method method, Session session, java.lang.Object[] params, int indexPayload, boolean convert, int indexSession, long maxMessageSize)
public final void onMessage(T message)
javax.websocket.MessageHandler.Whole
onMessage
in interface MessageHandler.Whole<T>
message
- The messageprotected java.lang.Object convert(T message)
protected abstract java.lang.Object decode(T message) throws DecodeException
DecodeException
protected abstract void onClose()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.