@ Handler ( priority = Integer . MIN_VALUE ) public void onOptions ( Request . In . Options event , IOSubchannel appChannel ) { if ( event . requestUri ( ) == HttpRequest . ASTERISK_REQUEST ) { HttpResponse response = event . httpRequest ( ) . response ( ) . get ( ) ; response . setStatus ( HttpStatus . OK ) ; appChannel . respond ( new Response ( response ) ) ; event . setResult ( true ) ; event . stop ( ) ; } }
Provides a fallback handler for an OPTIONS request with asterisk . Simply responds with OK .