Package org.apache.tomcat.websocket.pojo
Class PojoMessageHandlerBase<T>
java.lang.Object
org.apache.tomcat.websocket.pojo.PojoMessageHandlerBase<T>
- Type Parameters:
T
- The type of message to handle
- All Implemented Interfaces:
WrappedMessageHandler
- Direct Known Subclasses:
PojoMessageHandlerPartialBase
,PojoMessageHandlerWholeBase
Common implementation code for the POJO message handlers.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPojoMessageHandlerBase
(Object pojo, Method method, Session session, Object[] params, int indexPayload, boolean convert, int indexSession, long maxMessageSize) -
Method Summary
Modifier and TypeMethodDescriptionfinal long
final MessageHandler
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 final void
protected final void
processResult
(Object result)
-
Field Details
-
pojo
-
method
-
session
-
params
-
indexPayload
protected final int indexPayload -
convert
protected final boolean convert -
indexSession
protected final int indexSession -
maxMessageSize
protected final long maxMessageSize
-
-
Constructor Details
-
PojoMessageHandlerBase
-
-
Method Details
-
processResult
-
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.- Specified by:
getWrappedHandler
in interfaceWrappedMessageHandler
-
getMaxMessageSize
public final long getMaxMessageSize()- Specified by:
getMaxMessageSize
in interfaceWrappedMessageHandler
-
handlePojoMethodInvocationTargetException
-