Пример #1
0
 @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);
   }
 }
Пример #2
0
 public Promise<Result> onHandlerNotFound(RequestHeader request) {
   return Promise.<Result>pure(notFound(views.html.notFoundPage.render(request.uri())));
 }