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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPojoMessageHandlerBase(Object pojo, Method method, Session session, Object[] params, int indexPayload, boolean convert, int indexSession, long maxMessageSize) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal longfinal MessageHandlerExpose 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 voidprotected final voidprocessResult(Object result) 
- 
Field Details- 
pojo
- 
method
- 
session
- 
params
- 
indexPayloadprotected final int indexPayload
- 
convertprotected final boolean convert
- 
indexSessionprotected final int indexSession
- 
maxMessageSizeprotected final long maxMessageSize
 
- 
- 
Constructor Details- 
PojoMessageHandlerBase
 
- 
- 
Method Details- 
processResult
- 
getWrappedHandlerExpose 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:
- getWrappedHandlerin interface- WrappedMessageHandler
 
- 
getMaxMessageSizepublic final long getMaxMessageSize()- Specified by:
- getMaxMessageSizein interface- WrappedMessageHandler
 
- 
handlePojoMethodException
 
-