Search in sources :

Example 1 with TestingEventSinkImpl

use of org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl in project cxf by apache.

the class SimpleEventingIntegrationTest method createEventSinkWithWSAActionAssertion.

protected Server createEventSinkWithWSAActionAssertion(String address, String action) {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceBean(new TestingEventSinkImpl());
    factory.setAddress(address);
    factory.getHandlers().add(new WSAActionAssertingHandler(action));
    return factory.create();
}
Also used : TestingEventSinkImpl(org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl) WSAActionAssertingHandler(org.apache.cxf.ws.eventing.integration.notificationapi.assertions.WSAActionAssertingHandler) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Example 2 with TestingEventSinkImpl

use of org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl in project cxf by apache.

the class SimpleEventingIntegrationTest method createEventSinkWithReferenceParametersAssertion.

protected Server createEventSinkWithReferenceParametersAssertion(String address, ReferenceParametersType params) {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceBean(new TestingEventSinkImpl());
    factory.setAddress(address);
    factory.getHandlers().add(new ReferenceParametersAssertingHandler(params));
    return factory.create();
}
Also used : ReferenceParametersAssertingHandler(org.apache.cxf.ws.eventing.integration.notificationapi.assertions.ReferenceParametersAssertingHandler) TestingEventSinkImpl(org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Example 3 with TestingEventSinkImpl

use of org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl in project cxf by apache.

the class SimpleEventingIntegrationTest method createEventSink.

protected Server createEventSink(String address) {
    JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
    factory.setBus(bus);
    factory.setServiceBean(new TestingEventSinkImpl());
    factory.setAddress(address);
    return factory.create();
}
Also used : TestingEventSinkImpl(org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl) JaxWsServerFactoryBean(org.apache.cxf.jaxws.JaxWsServerFactoryBean)

Aggregations

JaxWsServerFactoryBean (org.apache.cxf.jaxws.JaxWsServerFactoryBean)3 TestingEventSinkImpl (org.apache.cxf.ws.eventing.integration.eventsink.TestingEventSinkImpl)3 ReferenceParametersAssertingHandler (org.apache.cxf.ws.eventing.integration.notificationapi.assertions.ReferenceParametersAssertingHandler)1 WSAActionAssertingHandler (org.apache.cxf.ws.eventing.integration.notificationapi.assertions.WSAActionAssertingHandler)1