MCPcopy Create free account
hub / github.com/BaseXdb/basex / matches

Method matches

basex-api/src/main/java/org/basex/http/ws/WsFunction.java:114–120  ·  view source on GitHub ↗

Checks if an WebSocket request matches this annotation and path. @param definition annotation definition (can be null) @param pth path to compare to (can be null) @return boolean result of check

(final Annotation definition, final WsPath pth)

Source from the content-addressed store, hash-verified

112 * @return boolean result of check
113 */
114 public boolean matches(final Annotation definition, final WsPath pth) {
115 for(final Ann ann : function.anns) {
116 if((definition == null || ann.definition == definition) &&
117 (pth == null || path.compareTo(pth) == 0)) return true;
118 }
119 return false;
120 }
121
122 @Override
123 public int compareTo(final WebFunction func) {

Callers 6

checkMethod · 0.45
remoteAddressMethod · 0.45
findMethod · 0.45
findWsMethod · 0.45
bestQfMethod · 0.45
serializeMethod · 0.45

Calls 1

compareToMethod · 0.45

Tested by 1

checkMethod · 0.36