void invoke ( HttpRequest request ) throws Exception { bodyConsumer = null ; Object invokeResult ; try { args [ 0 ] = this . request = request ; invokeResult = method . invoke ( handler , args ) ; } catch ( InvocationTargetException e ) { exceptionHandler . handle ( e . getTargetException ( ) , request , responder ) ; return ; } catch ( Throwable t ) { exceptionHandler . handle ( t , request , responder ) ; return ; } if ( isStreaming ) { // Casting guarantee to be succeeded. bodyConsumer = ( BodyConsumer ) invokeResult ; } }
Calls the httpHandler method .