use of org.apache.camel.component.hipchat.HipchatComponent in project camel by apache.
the class HipchatComponentAutoConfiguration method configureHipchatComponent.
@Lazy
@Bean(name = "hipchat-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(HipchatComponent.class)
public HipchatComponent configureHipchatComponent(CamelContext camelContext) throws Exception {
HipchatComponent component = new HipchatComponent();
component.setCamelContext(camelContext);
return component;
}
use of org.apache.camel.component.hipchat.HipchatComponent in project wildfly-camel by wildfly-extras.
the class HipchatProducerIntegrationTest method createCamelContext.
private CamelContext createCamelContext() throws Exception {
final CamelContext context = new DefaultCamelContext();
HipchatComponent component = new HipchatComponent(context) {
@Override
protected HipchatEndpoint getHipchatEndpoint(String uri) {
return new HipchatEPSuccessTestSupport(uri, this, callback, null);
}
};
context.addComponent("hipchat", component);
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from("direct:start").to("hipchat:http:api.hipchat.com?authToken=anything").to("mock:result");
}
});
return context;
}
use of org.apache.camel.component.hipchat.HipchatComponent in project wildfly-camel by wildfly-extras.
the class HipchatConsumerIntegrationTest method createCamelContext.
private CamelContext createCamelContext() throws Exception {
final CamelContext context = new DefaultCamelContext();
HipchatComponent component = new HipchatComponent(context) {
@Override
protected HipchatEndpoint getHipchatEndpoint(String uri) {
return new HipchatEPSuccessTestSupport(uri, this, null, closeableHttpResponse);
}
};
context.addComponent("hipchat", component);
context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from("hipchat:http://api.hipchat.com?authToken=anything&consumeUsers=@AUser").to("mock:result");
}
});
return context;
}
Aggregations