Package io.undertow.websockets.jsr.util
Class ClassUtils
java.lang.Object
io.undertow.websockets.jsr.util.ClassUtils
- Author:
- Norman Maurer
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>
getDecoderType
(Class<? extends javax.websocket.Decoder> clazz) Returns the Object type for which theEncoder
can be used.static Class<?>
getEncoderType
(Class<? extends javax.websocket.Encoder> clazz) Returns the Object type for which theEncoder
can be used.getHandlerTypes
(Class<? extends javax.websocket.MessageHandler> clazz) Returns a map of all supported message types by the given handler class.
-
Method Details
-
getHandlerTypes
public static Map<Class<?>,Boolean> getHandlerTypes(Class<? extends javax.websocket.MessageHandler> clazz) Returns a map of all supported message types by the given handler class. The key of the map is the supported message type; the value indicates whether it is a partial message handler or not.- Returns:
- a map of all supported message types by the given handler class.
-
getEncoderType
Returns the Object type for which theEncoder
can be used. -
getDecoderType
Returns the Object type for which theEncoder
can be used.
-