Package org.apache.tomcat.websocket.pojo
Class PojoMessageHandlerWholeBinary
- java.lang.Object
-
- org.apache.tomcat.websocket.pojo.PojoMessageHandlerBase<T>
-
- org.apache.tomcat.websocket.pojo.PojoMessageHandlerWholeBase<java.nio.ByteBuffer>
-
- org.apache.tomcat.websocket.pojo.PojoMessageHandlerWholeBinary
-
- All Implemented Interfaces:
MessageHandler
,MessageHandler.Whole<java.nio.ByteBuffer>
,WrappedMessageHandler
public class PojoMessageHandlerWholeBinary extends PojoMessageHandlerWholeBase<java.nio.ByteBuffer>
ByteBuffer specific concrete implementation for handling whole messages.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.websocket.MessageHandler
MessageHandler.Partial<T>, MessageHandler.Whole<T>
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.websocket.pojo.PojoMessageHandlerWholeBase
decoders
-
Fields inherited from class org.apache.tomcat.websocket.pojo.PojoMessageHandlerBase
convert, indexPayload, indexSession, maxMessageSize, method, params, pojo, session
-
-
Constructor Summary
Constructors Constructor Description PojoMessageHandlerWholeBinary(java.lang.Object pojo, java.lang.reflect.Method method, Session session, EndpointConfig config, java.util.List<java.lang.Class<? extends Decoder>> decoderClazzes, java.lang.Object[] params, int indexPayload, boolean convert, int indexSession, boolean isForInputStream, long maxMessageSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
convert(java.nio.ByteBuffer message)
protected java.lang.Object
decode(java.nio.ByteBuffer message)
-
Methods inherited from class org.apache.tomcat.websocket.pojo.PojoMessageHandlerWholeBase
createDecoderInstance, onClose, onMessage
-
Methods inherited from class org.apache.tomcat.websocket.pojo.PojoMessageHandlerBase
getMaxMessageSize, getWrappedHandler, handlePojoMethodException, processResult
-
-
-
-
Constructor Detail
-
PojoMessageHandlerWholeBinary
public PojoMessageHandlerWholeBinary(java.lang.Object pojo, java.lang.reflect.Method method, Session session, EndpointConfig config, java.util.List<java.lang.Class<? extends Decoder>> decoderClazzes, java.lang.Object[] params, int indexPayload, boolean convert, int indexSession, boolean isForInputStream, long maxMessageSize)
-
-
Method Detail
-
decode
protected java.lang.Object decode(java.nio.ByteBuffer message) throws DecodeException
- Specified by:
decode
in classPojoMessageHandlerWholeBase<java.nio.ByteBuffer>
- Throws:
DecodeException
-
convert
protected java.lang.Object convert(java.nio.ByteBuffer message)
- Overrides:
convert
in classPojoMessageHandlerWholeBase<java.nio.ByteBuffer>
-
-