T
- The type of message to handlepublic abstract class PojoMessageHandlerBase<T> extends java.lang.Object implements WrappedMessageHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
convert |
protected int |
indexPayload |
protected int |
indexSession |
protected long |
maxMessageSize |
protected java.lang.reflect.Method |
method |
protected java.lang.Object[] |
params |
protected java.lang.Object |
pojo |
protected Session |
session |
Constructor and Description |
---|
PojoMessageHandlerBase(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 |
---|---|
long |
getMaxMessageSize() |
MessageHandler |
getWrappedHandler()
Expose the POJO if it is a message handler so the Session is able to
match requests to remove handlers if the original handler has been
wrapped.
|
protected void |
handlePojoMethodException(java.lang.Throwable t) |
protected void |
processResult(java.lang.Object result) |
protected final java.lang.Object pojo
protected final java.lang.reflect.Method method
protected final Session session
protected final java.lang.Object[] params
protected final int indexPayload
protected final boolean convert
protected final int indexSession
protected final long maxMessageSize
public PojoMessageHandlerBase(java.lang.Object pojo, java.lang.reflect.Method method, Session session, java.lang.Object[] params, int indexPayload, boolean convert, int indexSession, long maxMessageSize)
protected final void processResult(java.lang.Object result)
public final MessageHandler getWrappedHandler()
getWrappedHandler
in interface WrappedMessageHandler
public final long getMaxMessageSize()
getMaxMessageSize
in interface WrappedMessageHandler
protected final void handlePojoMethodException(java.lang.Throwable t)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.