camle rest组件怎么和netty-http进行关联起来


rest("/apibus/busi/").produces(consumes).consumes(consumes)
.post("processApply").route().log("流程操作申请")
.to(BusiApplyRoute.ROUTE_ID).endRest()


#initRestEndpointProperties
org.apache.camel.support.RestComponentHelper#initRestEndpointProperties

Rest路由映射为NettyHttpConsumer
org.apache.camel.impl.engine.RouteService

最终结果

{DefaultRoute@19400} "Route[rest://post:/apibus/busi/:processApply?consumes=application%2Fjson&produces=application%2Fjson&routeId=route1 -> null]" -> {NettyHttpConsumer@19479} "Consumer[http://0.0.0.0:9903/apibus/busi/processApply?httpMethodRestrict=POST%2COPTIONS]"

posted @ 2023-02-04 16:23  浪涛飞  阅读(31)  评论(1编辑  收藏  举报