Class ClassUtils


  • public final class ClassUtils
    extends java.lang.Object
    Author:
    Norman Maurer
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class<?> getDecoderType​(java.lang.Class<? extends jakarta.websocket.Decoder> clazz)
      Returns the Object type for which the Encoder can be used.
      static java.lang.Class<?> getEncoderType​(java.lang.Class<? extends jakarta.websocket.Encoder> clazz)
      Returns the Object type for which the Encoder can be used.
      static java.util.Map<java.lang.Class<?>,​java.lang.Boolean> getHandlerTypes​(java.lang.Class<? extends jakarta.websocket.MessageHandler> clazz)
      Returns a map of all supported message types by the given handler class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHandlerTypes

        public static java.util.Map<java.lang.Class<?>,​java.lang.Boolean> getHandlerTypes​(java.lang.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 java.lang.Class<?> getEncoderType​(java.lang.Class<? extends jakarta.websocket.Encoder> clazz)
        Returns the Object type for which the Encoder can be used.
      • getDecoderType

        public static java.lang.Class<?> getDecoderType​(java.lang.Class<? extends jakarta.websocket.Decoder> clazz)
        Returns the Object type for which the Encoder can be used.