Пример #1
0
 /**
  * @return the HTTP request object
  * @return
  */
 public HttpServerRequest request() {
   if (cached_0 != null) {
     return cached_0;
   }
   HttpServerRequest ret = HttpServerRequest.newInstance(this.delegate.request());
   cached_0 = ret;
   return ret;
 }
Пример #2
0
  default void notNull(HttpServerRequest request, String... args) {
    Objects.nonNull(request);
    Objects.nonNull(args);

    for (String arg : args) {
      if (request.getParam(arg) == null) throw new RestValidationError();
    }
  }