Search in sources :

Example 1 with WSAActionAssertingHandler

use of org.apache.cxf.ws.eventing.integration.notificationapi.assertions.WSAActionAssertingHandler in project cxf by apache.

the class SimpleEventingIntegrationTest method createEndToEndpoint.

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

Example 2 with WSAActionAssertingHandler

use of org.apache.cxf.ws.eventing.integration.notificationapi.assertions.WSAActionAssertingHandler in project cxf by apache.

the class SimpleEventingIntegrationTest method createEndToEndpointWithReferenceParametersAssertion.

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

Example 3 with WSAActionAssertingHandler

use of org.apache.cxf.ws.eventing.integration.notificationapi.assertions.WSAActionAssertingHandler 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)

Aggregations

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