Top Description Fields Constructors Methods
org.apache.tomcat.websocket.pojo

public abstract Class PojoMessageHandlerBase<T>

extends Object
implements WrappedMessageHandler
Class Inheritance
All Implemented Interfaces
org.apache.tomcat.websocket.WrappedMessageHandler
Known Direct Subclasses
org.apache.tomcat.websocket.pojo.PojoMessageHandlerPartialBase, org.apache.tomcat.websocket.pojo.PojoMessageHandlerWholeBase
Type Parameters
<T>
The type of message to handle
Imports
java.io.IOException, java.lang.reflect.Method, java.nio.ByteBuffer, jakarta.websocket.EncodeException, .MessageHandler, .RemoteEndpoint, .Session, org.apache.tomcat.util.ExceptionUtils, org.apache.tomcat.websocket.WrappedMessageHandler

Common implementation code for the POJO message handlers.

Field Summary

Modifier and TypeField and Description
protected final boolean
protected final int
protected final int
protected final long
protected final Method
protected final Object[]
protected final Object
protected final Session

Constructor Summary

AccessConstructor and Description
public
PojoMessageHandlerBase(Object pojo, Method method, Session session, Object[] params, int indexPayload, boolean convert, int indexSession, long maxMessageSize)

Method Summary

Modifier and TypeMethod and Description
public final long
public final MessageHandler
getWrappedHandler()

Implements org.apache.tomcat.websocket.WrappedMessageHandler.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 final void
protected final void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

convertback to summary
protected final boolean convert
indexPayloadback to summary
protected final int indexPayload
indexSessionback to summary
protected final int indexSession
maxMessageSizeback to summary
protected final long maxMessageSize
methodback to summary
protected final Method method
paramsback to summary
protected final Object[] params
pojoback to summary
protected final Object pojo
sessionback to summary
protected final Session session

Constructor Detail

PojoMessageHandlerBaseback to summary
public PojoMessageHandlerBase(Object pojo, Method method, Session session, Object[] params, int indexPayload, boolean convert, int indexSession, long maxMessageSize)

Method Detail

getMaxMessageSizeback to summary
public final long getMaxMessageSize()

Implements org.apache.tomcat.websocket.WrappedMessageHandler.getMaxMessageSize.

Annotations
@Override
getWrappedHandlerback to summary
public final MessageHandler getWrappedHandler()

Implements org.apache.tomcat.websocket.WrappedMessageHandler.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.

Annotations
@Override
handlePojoMethodExceptionback to summary
protected final void handlePojoMethodException(Throwable t)
processResultback to summary
protected final void processResult(Object result)