use of org.apache.cxf.jaxws.JaxWsServerFactoryBean 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();
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean 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();
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean 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();
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean in project cxf by apache.
the class MEXTest method setUpBeforeClass.
/**
* @throws java.lang.Exception
*/
@BeforeClass
public static void setUpBeforeClass() throws Exception {
JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
factory.setServiceBean(new EchoImpl());
factory.setAddress("local://Echo");
factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
server = factory.create();
factory = new JaxWsServerFactoryBean();
factory.setServiceBean(new MEXEndpoint(server));
factory.setAddress("local://Echo-mex");
factory.setTransportId(LocalTransportFactory.TRANSPORT_ID);
factory.getFeatures().add(new LoggingFeature());
mexServer = factory.create();
}
use of org.apache.cxf.jaxws.JaxWsServerFactoryBean 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();
}
Aggregations