MCPcopy Create free account
hub / github.com/apache/tomcat / matchDecoders

Method matchDecoders

java/org/apache/tomcat/websocket/Util.java:441–452  ·  view source on GitHub ↗
(Class<?> target, EndpointConfig endpointConfig,
            boolean binary, InstanceManager instanceManager)

Source from the content-addressed store, hash-verified

439 }
440
441 private static List<Class<? extends Decoder>> matchDecoders(Class<?> target, EndpointConfig endpointConfig,
442 boolean binary, InstanceManager instanceManager) {
443 DecoderMatch decoderMatch = matchDecoders(target, endpointConfig, instanceManager);
444 if (binary) {
445 if (!decoderMatch.getBinaryDecoders().isEmpty()) {
446 return decoderMatch.getBinaryDecoders();
447 }
448 } else if (!decoderMatch.getTextDecoders().isEmpty()) {
449 return decoderMatch.getTextDecoders();
450 }
451 return null;
452 }
453
454 private static DecoderMatch matchDecoders(Class<?> target, EndpointConfig endpointConfig,
455 InstanceManager instanceManager) {

Callers 1

getMessageHandlersMethod · 0.95

Calls 5

getBinaryDecodersMethod · 0.95
getTextDecodersMethod · 0.95
getDecodersMethod · 0.95
getDecodersMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected