use of org.apache.camel.component.apns.factory.ApnsServiceFactory in project camel by apache.
the class ApnsConsumerIdleMessageTest method createCamelContext.
@Override
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ApnsServiceFactory apnsServiceFactory = ApnsUtils.createDefaultTestConfiguration(camelContext);
ApnsService apnsService = apnsServiceFactory.getApnsService();
ApnsComponent apnsComponent = new ApnsComponent(apnsService);
camelContext.addComponent("apns", apnsComponent);
return camelContext;
}
use of org.apache.camel.component.apns.factory.ApnsServiceFactory in project camel by apache.
the class ApnsConsumerTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ApnsServiceFactory apnsServiceFactory = ApnsUtils.createDefaultTestConfiguration(camelContext);
ApnsService apnsService = apnsServiceFactory.getApnsService();
ApnsComponent apnsComponent = new ApnsComponent(apnsService);
camelContext.addComponent("apns", apnsComponent);
return camelContext;
}
use of org.apache.camel.component.apns.factory.ApnsServiceFactory in project camel by apache.
the class ApnsProducerWithoutTokensHeaderTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ApnsServiceFactory apnsServiceFactory = ApnsUtils.createDefaultTestConfiguration(camelContext);
ApnsService apnsService = apnsServiceFactory.getApnsService();
ApnsComponent apnsComponent = new ApnsComponent(apnsService);
camelContext.addComponent("apns", apnsComponent);
return camelContext;
}
use of org.apache.camel.component.apns.factory.ApnsServiceFactory in project camel by apache.
the class ApnsUtils method createDefaultTestConfiguration.
public static ApnsServiceFactory createDefaultTestConfiguration(CamelContext camelContext) throws Exception {
ApnsServiceFactory apnsServiceFactory = new ApnsServiceFactory(camelContext);
apnsServiceFactory.setFeedbackHost(TestConstants.TEST_HOST);
apnsServiceFactory.setFeedbackPort(TestConstants.TEST_FEEDBACK_PORT);
apnsServiceFactory.setGatewayHost(TestConstants.TEST_HOST);
apnsServiceFactory.setGatewayPort(TestConstants.TEST_GATEWAY_PORT);
// apnsServiceFactory.setCertificatePath("classpath:/" +
// FixedCertificates.CLIENT_STORE);
// apnsServiceFactory.setCertificatePassword(FixedCertificates.CLIENT_PASSWD);
apnsServiceFactory.setSslContextParameters(clientContext());
return apnsServiceFactory;
}
use of org.apache.camel.component.apns.factory.ApnsServiceFactory in project camel by apache.
the class ApnsProducerTest method createCamelContext.
protected CamelContext createCamelContext() throws Exception {
CamelContext camelContext = super.createCamelContext();
ApnsServiceFactory apnsServiceFactory = ApnsUtils.createDefaultTestConfiguration(camelContext);
ApnsService apnsService = apnsServiceFactory.getApnsService();
ApnsComponent apnsComponent = new ApnsComponent(apnsService);
camelContext.addComponent("apns", apnsComponent);
return camelContext;
}
Aggregations