Example #1
0
 this.setMergeFormAttributes = function(mergeFormAttributes) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='boolean') {
     j_bodyHandler["setMergeFormAttributes(boolean)"](mergeFormAttributes);
     return that;
   } else utils.invalidArgs();
 };
Example #2
0
 this.exposedHeader = function(headerName) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'string') {
     j_corsHandler["exposedHeader(java.lang.String)"](headerName);
     return that;
   } else utils.invalidArgs();
 };
Example #3
0
 this.setBodyLimit = function(bodyLimit) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='number') {
     j_bodyHandler["setBodyLimit(long)"](bodyLimit);
     return that;
   } else utils.invalidArgs();
 };
Example #4
0
 this.write = function(data) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'object' && __args[0]._vertxgen) {
     j_sockJSSocket.write(data._jdel());
     return that;
   } else utils.invalidArgs();
 };
Example #5
0
 this.setWriteQueueMaxSize = function(maxSize) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='number') {
     j_sockJSSocket.setWriteQueueMaxSize(maxSize);
     return that;
   } else utils.invalidArgs();
 };
Example #6
0
 this.endHandler = function(endHandler) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'function') {
     j_sockJSSocket.endHandler(endHandler);
     return that;
   } else utils.invalidArgs();
 };
Example #7
0
 this.allowedHeaders = function(headerNames) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'object' && __args[0] instanceof Array) {
     j_corsHandler["allowedHeaders(java.util.Set)"](utils.convParamSetBasicOther(headerNames));
     return that;
   } else utils.invalidArgs();
 };
Example #8
0
 this.consumes = function(contentType) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'string') {
     j_route["consumes(java.lang.String)"](contentType);
     return that;
   } else utils.invalidArgs();
 };
Example #9
0
 this.useNormalisedPath = function(useNormalisedPath) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='boolean') {
     j_route["useNormalisedPath(boolean)"](useNormalisedPath);
     return that;
   } else utils.invalidArgs();
 };
Example #10
0
 this.method = function(method) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'string') {
     j_route["method(io.vertx.core.http.HttpMethod)"](io.vertx.core.http.HttpMethod.valueOf(__args[0]));
     return that;
   } else utils.invalidArgs();
 };
Example #11
0
 this.mountSubRouter = function(mountPoint, subRouter) {
   var __args = arguments;
   if (__args.length === 2 && typeof __args[0] === 'string' && typeof __args[1] === 'object' && __args[1]._jdel) {
     j_router["mountSubRouter(java.lang.String,io.vertx.ext.web.Router)"](mountPoint, subRouter._jdel);
     return that;
   } else utils.invalidArgs();
 };
Example #12
0
 this.enable = function() {
   var __args = arguments;
   if (__args.length === 0) {
     j_route["enable()"]();
     return that;
   } else utils.invalidArgs();
 };
Example #13
0
 this.order = function(order) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='number') {
     j_route["order(int)"](order);
     return that;
   } else utils.invalidArgs();
 };
Example #14
0
 this.last = function(last) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='boolean') {
     j_route["last(boolean)"](last);
     return that;
   } else utils.invalidArgs();
 };
Example #15
0
 this.setUploadsDirectory = function(uploadsDirectory) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'string') {
     j_bodyHandler["setUploadsDirectory(java.lang.String)"](uploadsDirectory);
     return that;
   } else utils.invalidArgs();
 };
 this.addAuthority = function(authority) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'string') {
     j_basicAuthHandler["addAuthority(java.lang.String)"](authority);
     return that;
   } else utils.invalidArgs();
 };
Example #17
0
 this.maxAgeSeconds = function(maxAgeSeconds) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='number') {
     j_corsHandler["maxAgeSeconds(int)"](maxAgeSeconds);
     return that;
   } else utils.invalidArgs();
 };
Example #18
0
 this.clear = function() {
   var __args = arguments;
   if (__args.length === 0) {
     j_router["clear()"]();
     return that;
   } else utils.invalidArgs();
 };
Example #19
0
 this.allowCredentials = function(allow) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] ==='boolean') {
     j_corsHandler["allowCredentials(boolean)"](allow);
     return that;
   } else utils.invalidArgs();
 };
 this.addAuthorities = function(authorities) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'object' && __args[0] instanceof Array) {
     j_basicAuthHandler["addAuthorities(java.util.Set)"](utils.convParamSetBasicOther(authorities));
     return that;
   } else utils.invalidArgs();
 };
Example #21
0
 this.pathRegex = function(path) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'string') {
     j_route["pathRegex(java.lang.String)"](path);
     return that;
   } else utils.invalidArgs();
 };
Example #22
0
 this.resume = function() {
   var __args = arguments;
   if (__args.length === 0) {
     j_sockJSSocket.resume();
     return that;
   } else utils.invalidArgs();
 };
BasicAuthHandler.create = function() {
  var __args = arguments;
  if (__args.length === 1 && typeof __args[0] === 'object' && __args[0]._jdel) {
    return utils.convReturnVertxGen(JBasicAuthHandler["create(io.vertx.ext.auth.AuthProvider)"](__args[0]._jdel), AuthHandler);
  }else if (__args.length === 2 && typeof __args[0] === 'object' && __args[0]._jdel && typeof __args[1] === 'string') {
    return utils.convReturnVertxGen(JBasicAuthHandler["create(io.vertx.ext.auth.AuthProvider,java.lang.String)"](__args[0]._jdel, __args[1]), AuthHandler);
  } else utils.invalidArgs();
};
ClusteredSessionStore.clusteredSessionStore = function() {
  var __args = arguments;
  if (__args.length === 1 && typeof __args[0] === 'object' && __args[0]._jdel) {
    return new ClusteredSessionStore(JClusteredSessionStore.clusteredSessionStore(__args[0]._jdel));
  }else if (__args.length === 2 && typeof __args[0] === 'object' && __args[0]._jdel && typeof __args[1] === 'string') {
    return new ClusteredSessionStore(JClusteredSessionStore.clusteredSessionStore(__args[0]._jdel, __args[1]));
  } else utils.invalidArgs();
};
Example #25
0
TimeoutHandler.create = function() {
  var __args = arguments;
  if (__args.length === 0) {
    return new TimeoutHandler(JTimeoutHandler["create()"]());
  }else if (__args.length === 1 && typeof __args[0] ==='number') {
    return new TimeoutHandler(JTimeoutHandler["create(long)"](__args[0]));
  } else utils.invalidArgs();
};
Example #26
0
 this.get = function() {
   var __args = arguments;
   if (__args.length === 0) {
     return utils.convReturnVertxGen(j_router["get()"](), Route);
   }  else if (__args.length === 1 && typeof __args[0] === 'string') {
     return utils.convReturnVertxGen(j_router["get(java.lang.String)"](__args[0]), Route);
   } else utils.invalidArgs();
 };
Example #27
0
 this.routeWithRegex = function() {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'string') {
     return utils.convReturnVertxGen(j_router["routeWithRegex(java.lang.String)"](__args[0]), Route);
   }  else if (__args.length === 2 && typeof __args[0] === 'string' && typeof __args[1] === 'string') {
     return utils.convReturnVertxGen(j_router["routeWithRegex(io.vertx.core.http.HttpMethod,java.lang.String)"](io.vertx.core.http.HttpMethod.valueOf(__args[0]), __args[1]), Route);
   } else utils.invalidArgs();
 };
Example #28
0
 this.handler = function(handler) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'function') {
     j_sockJSSocket.handler(function(jVal) {
     handler(new Buffer(jVal));
   });
     return that;
   } else utils.invalidArgs();
 };
Example #29
0
 this.exceptionHandler = function(exceptionHandler) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'function') {
     j_router["exceptionHandler(io.vertx.core.Handler)"](function(jVal) {
     exceptionHandler(utils.convReturnTypeUnknown(jVal));
   });
     return that;
   } else utils.invalidArgs();
 };
Example #30
0
 this.failureHandler = function(failureHandler) {
   var __args = arguments;
   if (__args.length === 1 && typeof __args[0] === 'function') {
     j_route["failureHandler(io.vertx.core.Handler)"](function(jVal) {
     failureHandler(new RoutingContext(jVal));
   });
     return that;
   } else utils.invalidArgs();
 };