@Override public Handler onRouteRequest(RequestHeader request) { // If request method is webdav method, SvnApp serves this request // because Play2 cannot route them. if (SvnApp.isWebDavMethod(request.method())) { return routes.ref.SvnApp.service().handler(); } else { return super.onRouteRequest(request); } }
public Promise<Result> onHandlerNotFound(RequestHeader request) { return Promise.<Result>pure(notFound(views.html.notFoundPage.render(request.uri()))); }