protected UriRoute buildRoute ( HttpMethod httpMethod , String uri , Class < ? > type , String method , Class ... parameterTypes ) { Optional < ? extends MethodExecutionHandle < ? , Object > > executionHandle = executionHandleLocator . findExecutionHandle ( type , method , parameterTypes ) ; MethodExecutionHandle < ? , Object > executableHandle = executionHandle . orElseThrow ( ( ) -> new RoutingException ( "No such route: " + type . getName ( ) + "." + method ) ) ; return buildRoute ( httpMethod , uri , executableHandle ) ; }
Build a route .