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)
| 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) { |