io.vertx.ext.web.Router.handleContext()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中io.vertx.ext.web.Router.handleContext方法的一些代码示例,展示了Router.handleContext的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Router.handleContext方法的具体详情如下:
包路径:io.vertx.ext.web.Router
类名称:Router
方法名:handleContext

Router.handleContext介绍

[英]Used to route a context to the router. Used for sub-routers. You wouldn't normally call this method directly.
[中]用于将上下文路由到路由器。用于子路由器。通常不会直接调用此方法。

代码示例

代码示例来源:origin: vert-x3/vertx-web

@Override
public void handle(RoutingContext context) {
 if (log.isTraceEnabled()) {
  log.trace("Got request in sockjs server: " + context.request().uri());
 }
 router.handleContext(context);
}

代码示例来源:origin: wang007/vertx-start

@Override
public void handleContext(RoutingContext context) {
  delegate.handleContext(context);
}

代码示例来源:origin: org.zalando/vertx-swagger

@Override
public void handleContext(RoutingContext context) {
  router.handleContext(context);
}

代码示例来源:origin: vert-x3/vertx-rx

/**
 * Used to route a context to the router. Used for sub-routers. You wouldn't normally call this method directly.
 * @param context the routing context
 */
public void handleContext(io.vertx.rxjava.ext.web.RoutingContext context) { 
 delegate.handleContext(context.getDelegate());
}

代码示例来源:origin: io.vertx/vertx-rx-java

/**
 * Used to route a context to the router. Used for sub-routers. You wouldn't normally call this method directly.
 * @param context the routing context
 */
public void handleContext(io.vertx.rxjava.ext.web.RoutingContext context) { 
 delegate.handleContext(context.getDelegate());
}

代码示例来源:origin: io.vertx/vertx-web

@Override
public void handle(RoutingContext context) {
 if (log.isTraceEnabled()) {
  log.trace("Got request in sockjs server: " + context.request().uri());
 }
 router.handleContext(context);
}

相关文章