Package org.apache.tomcat.websocket
Class Util
java.lang.Object
org.apache.tomcat.websocket.Util
Utility class for internal use only within the 
org.apache.tomcat.websocket package.- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectcoerceToType(Class<?> type, String value) static List<DecoderEntry>getDecoders(List<Class<? extends Decoder>> decoderClazzes, InstanceManager instanceManager) Build the list of decoder entries from a set of decoder implementations.static booleanisPrimitive(Class<?> clazz) static voidparseExtensionHeader(List<Extension> extensions, String header) 
- 
Method Details- 
isPrimitive
- 
coerceToType
- 
getDecoderspublic static List<DecoderEntry> getDecoders(List<Class<? extends Decoder>> decoderClazzes, InstanceManager instanceManager) throws DeploymentException Build the list of decoder entries from a set of decoder implementations.- Parameters:
- decoderClazzes- Decoder implementation classes
- instanceManager- Instance manager to use to create Decoder instances
- Returns:
- List of mappings from target type to associated decoder
- Throws:
- DeploymentException- If a provided decoder class is not valid
 
- 
parseExtensionHeader
 
-