public void connect(HttpConsumer consumer) throws Exception {
ServletEndpoint endpoint = (ServletEndpoint) consumer.getEndpoint();
CamelServlet servlet = getCamelServlet(endpoint.getServletName());
ObjectHelper.notNull(servlet, "CamelServlet");
servlet.connect(consumer);
}
public void disconnect(HttpConsumer consumer) throws Exception {
ServletEndpoint endpoint = (ServletEndpoint) consumer.getEndpoint();
CamelServlet servlet = getCamelServlet(endpoint.getServletName());