本文整理了Java中io.vertx.ext.web.Router.accept
方法的一些代码示例,展示了Router.accept
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Router.accept
方法的具体详情如下:
包路径:io.vertx.ext.web.Router
类名称:Router
方法名:accept
[英]This method is used to provide a request to the router. Usually you take request from the io.vertx.core.http.HttpServer#requestHandler(Handler) and pass it to this method. The router then routes it to matching routes. This method is now deprecated you can use this object directly as a request handler, which means there is no need for a method reference anymore.
[中]此方法用于向路由器提供请求。通常你会接受io的请求。维特斯。果心http。HttpServer#requestHandler(Handler)并将其传递给此方法。然后路由器将其路由到匹配的路由。此方法现在已被弃用。您可以直接将此对象用作请求处理程序,这意味着不再需要方法引用。
代码示例来源:origin: org.swisspush.gateleen/gateleen-queue
@Override
public void handle(HttpServerRequest request) {
router.accept(request);
}
代码示例来源:origin: org.zalando/vertx-swagger
@Override
public void accept(HttpServerRequest request) {
router.accept(request);
}
代码示例来源:origin: org.swisspush.gateleen/gateleen-queue
public void handle(HttpServerRequest request) {
router.accept(request);
}
代码示例来源:origin: org.swisspush/redisques
@Override
public void handle(HttpServerRequest request) {
router.accept(request);
}
代码示例来源:origin: wang007/vertx-start
@Override
public void accept(HttpServerRequest request) {
delegate.accept(request);
}
代码示例来源:origin: org.swisspush/gateleen-queue
public void handle(HttpServerRequest request) {
router.accept(request);
}
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* This method is used to provide a request to the router. Usually you take request from the
* {@link io.vertx.rxjava.core.http.HttpServer#requestHandler} and pass it to this method. The
* router then routes it to matching routes.
*
* This method is now deprecated you can use this object directly as a request handler, which
* means there is no need for a method reference anymore.
* @param request the request
*/
@Deprecated()
public void accept(io.vertx.rxjava.core.http.HttpServerRequest request) {
delegate.accept(request.getDelegate());
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* This method is used to provide a request to the router. Usually you take request from the
* {@link io.vertx.rxjava.core.http.HttpServer#requestHandler} and pass it to this method. The
* router then routes it to matching routes.
*
* This method is now deprecated you can use this object directly as a request handler, which
* means there is no need for a method reference anymore.
* @param request the request
*/
@Deprecated()
public void accept(io.vertx.rxjava.core.http.HttpServerRequest request) {
delegate.accept(request.getDelegate());
}
代码示例来源:origin: wang007/vertx-start
return;
if (success) mainRouter.accept(request);
}).listen(info.port, info.address);
代码示例来源:origin: org.swisspush.gateleen/gateleen-routing
router.accept(request);
return;
router.accept(request);
} else {
String errorMessage = "Request hops limit of '" + requestHopsLimit + "' has been exceeded. Check the routing rules for looping configurations";
内容来源于网络,如有侵权,请联系作者删除!