Package io.undertow.websockets.jsr.util
Class ClassUtils
- java.lang.Object
-
- io.undertow.websockets.jsr.util.ClassUtils
-
public final class ClassUtils extends Object
- Author:
- Norman Maurer
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>getDecoderType(Class<? extends jakarta.websocket.Decoder> clazz)Returns the Object type for which theEncodercan be used.static Class<?>getEncoderType(Class<? extends jakarta.websocket.Encoder> clazz)Returns the Object type for which theEncodercan be used.static Map<Class<?>,Boolean>getHandlerTypes(Class<? extends jakarta.websocket.MessageHandler> clazz)Returns a map of all supported message types by the given handler class.
-
-
-
Method Detail
-
getHandlerTypes
public static Map<Class<?>,Boolean> getHandlerTypes(Class<? extends jakarta.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
public static Class<?> getEncoderType(Class<? extends jakarta.websocket.Encoder> clazz)
Returns the Object type for which theEncodercan be used.
-
-