HttpComponent httpComponent = getContext().getComponent("https", HttpComponent.class);
httpComponent.setHttpClientConfigurer(new SelfSignedHttpClientConfigurer());
from(...somewhere)
.....do things
.enrich(getHttp(),
doSomeMoreThings);
}
private HttpEndpointBuilderFactory.HttpEndpointBuilder getHttp() {
return http("localhost:443"+auditorProps.getPath());
}
当我查看错误时,我得到一个 400:http 添加的方案是“http”,而不是“https”。我究竟做错了什么?