public static Route registerEndpoint ( String method_uri , Class < ? extends RestApiHandler > handler_clz ) { try { RestApiHandler handler = handler_clz . newInstance ( ) ; return registerEndpoint ( handler . name ( ) , method_uri , handler_clz , null , handler . help ( ) ) ; } catch ( Exception e ) { throw H2O . fail ( e . getMessage ( ) ) ; } }
Register an HTTP request handler for the given URL pattern .