@ RequestHandler ( patterns = "/form,/form/**" ) public void onPost ( Request . In . Post event , IOSubchannel channel ) { FormContext ctx = channel . associated ( this , FormContext :: new ) ; ctx . request = event . httpRequest ( ) ; ctx . session = event . associated ( Session . class ) . get ( ) ; event . setResult ( true ) ; event . stop ( ) ; }
Handle a POST request .