One option is to define a 404 user mapping. Since 404s handles all unsurpassed requests, it must catch all undefined URLs.
I added the following to my web.xml
<error-page> <error-code>404</error-code> <location>/error/404</location> </error-page>
Where location is the path you want to send the request to. Then just determine that the call is normal.
source share