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

Method getOnMessageMethod

java/org/apache/tomcat/websocket/Util.java:551–557  ·  view source on GitHub ↗
(MessageHandler listener)

Source from the content-addressed store, hash-verified

549 }
550
551 private static Method getOnMessageMethod(MessageHandler listener) {
552 try {
553 return listener.getClass().getMethod("onMessage", Object.class);
554 } catch (NoSuchMethodException | SecurityException e) {
555 throw new IllegalArgumentException(sm.getString("util.invalidMessageHandler"), e);
556 }
557 }
558
559 private static Method getOnMessagePartialMethod(MessageHandler listener) {
560 try {

Callers 1

getMessageHandlersMethod · 0.95

Calls 2

getMethodMethod · 0.65
getStringMethod · 0.65

Tested by

no test coverage detected