package camel.gateway.route; import camel.gateway.processor.GatewayProcessor; import org.apache.camel.builder.RouteBuilder; import org.springframework.stereotype.Component; /** * @author HZY * @vsrsion 1.0 * Created at 2017/3/13. */ @Component public class GatewayRouterBuilder extends RouteBuilder { @Override public void configure() throws Exception { from("jetty:http://0.0.0.0:9999/api").routeId("mock:collect") .process(new GatewayProcessor()) .routingSlip(method(GatewayProcessor.class, "secret")) .routingSlip(method(GatewayProcessor.class, "route")); } }