public class EncodingFactory extends Object
These classes also perform implicit encodings for java primitives
Modifier and Type | Field and Description |
---|---|
static EncodingFactory | DEFAULT An encoding factory that can deal with primitive types. |
Constructor and Description |
---|
EncodingFactory(Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Encoder>>> binaryEncoders, Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Decoder>>> binaryDecoders, Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Encoder>>> textEncoders, Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Decoder>>> textDecoders) |
Modifier and Type | Method and Description |
---|---|
boolean | canDecodeBinary(Class<?> type) |
boolean | canDecodeText(Class<?> type) |
boolean | canEncodeBinary(Class<?> type) |
boolean | canEncodeText(Class<?> type) |
Encoding | createEncoding(javax.websocket.EndpointConfig endpointConfig) |
static EncodingFactory | createFactory(ClassIntrospecter classIntrospecter, Class<? extends javax.websocket.Decoder>[] decoders, Class<? extends javax.websocket.Encoder>[] encoders) |
static EncodingFactory | createFactory(ClassIntrospecter classIntrospecter, List<Class<? extends javax.websocket.Decoder>> decoders, List<Class<? extends javax.websocket.Encoder>> encoders) |
public static final EncodingFactory DEFAULT
public EncodingFactory(Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Encoder>>> binaryEncoders, Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Decoder>>> binaryDecoders, Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Encoder>>> textEncoders, Map<Class<?>,List<InstanceFactory<? extends javax.websocket.Decoder>>> textDecoders)
public boolean canEncodeText(Class<?> type)
public boolean canDecodeText(Class<?> type)
public boolean canEncodeBinary(Class<?> type)
public boolean canDecodeBinary(Class<?> type)
public Encoding createEncoding(javax.websocket.EndpointConfig endpointConfig)
public static EncodingFactory createFactory(ClassIntrospecter classIntrospecter, Class<? extends javax.websocket.Decoder>[] decoders, Class<? extends javax.websocket.Encoder>[] encoders) throws javax.websocket.DeploymentException
javax.websocket.DeploymentException
public static EncodingFactory createFactory(ClassIntrospecter classIntrospecter, List<Class<? extends javax.websocket.Decoder>> decoders, List<Class<? extends javax.websocket.Encoder>> encoders) throws javax.websocket.DeploymentException
javax.websocket.DeploymentException
Copyright © 2017 JBoss by Red Hat. All rights reserved.