本文整理了Java中io.vertx.ext.web.Router.patch
方法的一些代码示例,展示了Router.patch
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Router.patch
方法的具体详情如下:
包路径:io.vertx.ext.web.Router
类名称:Router
方法名:patch
[英]Add a route that matches any HTTP PATCH request
[中]添加与任何HTTP修补程序请求匹配的路由
代码示例来源:origin: org.zalando/vertx-swagger
@Override
public Route patch() {
return router.patch();
}
代码示例来源:origin: org.zalando/vertx-swagger
@Override
public Route patch(String path) {
return router.patch(path);
}
代码示例来源:origin: wang007/vertx-start
@Override
public io.vertx.ext.web.Route patch() {
return delegate.patch();
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* Add a route that matches any HTTP PATCH request
* @return the route
*/
public io.vertx.rxjava.ext.web.Route patch() {
io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch());
return ret;
}
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Add a route that matches a HTTP PATCH request and the specified path
* @param path URI paths that begin with this path will match
* @return the route
*/
public io.vertx.rxjava.ext.web.Route patch(String path) {
io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch(path));
return ret;
}
代码示例来源:origin: io.vertx/vertx-rx-java
/**
* Add a route that matches any HTTP PATCH request
* @return the route
*/
public io.vertx.rxjava.ext.web.Route patch() {
io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch());
return ret;
}
代码示例来源:origin: vert-x3/vertx-rx
/**
* Add a route that matches a HTTP PATCH request and the specified path
* @param path URI paths that begin with this path will match
* @return the route
*/
public io.vertx.rxjava.ext.web.Route patch(String path) {
io.vertx.rxjava.ext.web.Route ret = io.vertx.rxjava.ext.web.Route.newInstance(delegate.patch(path));
return ret;
}
代码示例来源:origin: wang007/vertx-start
@Override
public io.vertx.ext.web.Route patch(String path) {
return delegate.patch(getFullPath(path));
}
代码示例来源:origin: dmart28/gcplot
break;
case PATCH:
route = router.patch(s);
break;
代码示例来源:origin: outofcoffee/imposter
router.patch("/services/data/:apiVersion/sobjects/:sObjectName/:sObjectId")
.handler(handleUpdateRequest());
router.post("/services/data/:apiVersion/sobjects/:sObjectName/:sObjectId")
代码示例来源:origin: sczyh30/vertx-blueprint-microservice
@Override
public void start(Future<Void> future) throws Exception {
super.start();
final Router router = Router.router(vertx);
// body handler
router.route().handler(BodyHandler.create());
// api route handler
router.post(API_ADD).handler(this::apiAddUser);
router.get(API_RETRIEVE).handler(this::apiRetrieveUser);
router.get(API_RETRIEVE_ALL).handler(this::apiRetrieveAll);
router.patch(API_UPDATE).handler(this::apiUpdateUser);
router.delete(API_DELETE).handler(this::apiDeleteUser);
String host = config().getString("user.account.http.address", "0.0.0.0");
int port = config().getInteger("user.account.http.port", 8081);
// create HTTP server and publish REST service
createHttpServer(router, host, port)
.compose(serverCreated -> publishHttpEndpoint(SERVICE_NAME, host, port))
.setHandler(future.completer());
}
代码示例来源:origin: sczyh30/vertx-blueprint-microservice
@Override
public void start(Future<Void> future) throws Exception {
super.start();
final Router router = Router.router(vertx);
// body handler
router.route().handler(BodyHandler.create());
// API route handler
router.post(API_ADD).handler(this::apiAdd);
router.get(API_RETRIEVE_BY_PAGE).handler(this::apiRetrieveByPage);
router.get(API_RETRIEVE_ALL).handler(this::apiRetrieveAll);
router.get(API_RETRIEVE_PRICE).handler(this::apiRetrievePrice);
router.get(API_RETRIEVE).handler(this::apiRetrieve);
router.patch(API_UPDATE).handler(this::apiUpdate);
router.delete(API_DELETE).handler(this::apiDelete);
router.delete(API_DELETE_ALL).handler(context -> requireLogin(context, this::apiDeleteAll));
// get HTTP host and port from configuration, or use default value
String host = config().getString("product.http.address", "0.0.0.0");
int port = config().getInteger("product.http.port", 8082);
// create HTTP server and publish REST service
createHttpServer(router, host, port)
.compose(serverCreated -> publishHttpEndpoint(SERVICE_NAME, host, port))
.setHandler(future.completer());
}
内容来源于网络,如有侵权,请联系作者删除!