Util (Apache Tomcat 8.5.43 API Documentation)

org.apache.tomcat.websocket

## Class Util

- java.lang.Object
- - org.apache.tomcat.websocket.Util

-     public class Util
      extends java.lang.Object

  Utility class for internal use only within the `org.apache.tomcat.websocket` package.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Util.DecoderMatch`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.Object` | `coerceToType(java.lang.Class<?> type, java.lang.String value)`
    `static java.util.List<DecoderEntry>` | `getDecoders(java.util.List<java.lang.Class<? extends Decoder>> decoderClazzes)`
    `static boolean` | `isPrimitive(java.lang.Class<?> clazz)`
    `static void` | `parseExtensionHeader(java.util.List<Extension> extensions, java.lang.String header)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### isPrimitive

          public static boolean isPrimitive(java.lang.Class<?> clazz)

    - #### coerceToType

          public static java.lang.Object coerceToType(java.lang.Class<?> type,
                                      java.lang.String value)

    - #### getDecoders

          public static java.util.List<DecoderEntry> getDecoders(java.util.List<java.lang.Class<? extends Decoder>> decoderClazzes)
                                                          throws DeploymentException

      Throws:
        `DeploymentException`

    - #### parseExtensionHeader

          public static void parseExtensionHeader(java.util.List<Extension> extensions,
                                  java.lang.String header)

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.