use of io.servicecomb.common.rest.codec.RestServerRequestInternal in project java-chassis by ServiceComb.
the class VertxRestServer method onRequest.
private void onRequest(RoutingContext context) {
RestServerRequestInternal restRequest = new RestVertxHttpRequest(context, Future.future());
context.put(REST_REQUEST, restRequest);
handleRequest(restRequest, context.response());
}
use of io.servicecomb.common.rest.codec.RestServerRequestInternal in project java-chassis by ServiceComb.
the class TestVertxRestServer method setUp.
@Before
public void setUp() throws Exception {
Router mainRouter = Router.router(null);
mainRouter.route().handler(BodyHandler.create());
instance = new VertxRestServer(mainRouter) {
@Override
protected RestOperationMeta findRestOperation(RestServerRequestInternal restRequest) {
return super.findRestOperation(restRequest);
}
@Override
public void sendFailResponse(RestServerRequestInternal restRequest, HttpServerResponse httpResponse, Throwable throwable) {
}
};
}
Aggregations