Class MessageHandlerWrapper
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.MessageHandlerWrapper
-
public class MessageHandlerWrapper extends java.lang.Object
Expose aMessageHandler
instance along with its associatedMessageHandlerMetadata
andDecoderFactory.Wrapper
-
-
Constructor Summary
Constructors Constructor Description MessageHandlerWrapper(javax.websocket.MessageHandler handler, MessageHandlerMetadata metadata, DecoderFactory.Wrapper decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DecoderFactory.Wrapper
getDecoder()
javax.websocket.MessageHandler
getHandler()
MessageHandlerMetadata
getMetadata()
boolean
isMessageType(java.lang.Class<?> msgType)
boolean
wantsPartialMessages()
Flag for a onMessage() that wants partial messages.boolean
wantsStreams()
Flag for a onMessage() method that wants MessageHandler.MessageHandler.Whole
with a Decoder that is based onDecoder.TextStream
orDecoder.BinaryStream
-
-
-
Constructor Detail
-
MessageHandlerWrapper
public MessageHandlerWrapper(javax.websocket.MessageHandler handler, MessageHandlerMetadata metadata, DecoderFactory.Wrapper decoder)
-
-
Method Detail
-
getDecoder
public DecoderFactory.Wrapper getDecoder()
-
getHandler
public javax.websocket.MessageHandler getHandler()
-
getMetadata
public MessageHandlerMetadata getMetadata()
-
isMessageType
public boolean isMessageType(java.lang.Class<?> msgType)
-
wantsPartialMessages
public boolean wantsPartialMessages()
Flag for a onMessage() that wants partial messages.This indicates the use of MessageHandler.
MessageHandler.Partial
.- Returns:
- true for use of MessageHandler.
MessageHandler.Partial
, false for use of MessageHandler.MessageHandler.Whole
-
wantsStreams
public boolean wantsStreams()
Flag for a onMessage() method that wants MessageHandler.MessageHandler.Whole
with a Decoder that is based onDecoder.TextStream
orDecoder.BinaryStream
- Returns:
- true for Streaming based Decoder, false for normal decoder for whole messages.
-
-