本文整理汇总了Java中org.apache.cxf.jaxws.EndpointImpl类的典型用法代码示例。如果您正苦于以下问题:Java EndpointImpl类的具体用法?Java EndpointImpl怎么用?Java EndpointImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EndpointImpl类属于org.apache.cxf.jaxws包,在下文中一共展示了EndpointImpl类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSoapSignatureEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean
public Endpoint createSoapSignatureEndpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, soapDocumentSignatureService());
endpoint.publish(SOAP_SIGNATURE_ONE_DOCUMENT);
enableMTOM(endpoint);
return endpoint;
}
示例2: createSoapMultipleDocumentsSignatureEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean
public Endpoint createSoapMultipleDocumentsSignatureEndpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, soapMultipleDocumentsSignatureService());
endpoint.publish(SOAP_SIGNATURE_MULTIPLE_DOCUMENTS);
enableMTOM(endpoint);
return endpoint;
}
示例3: createSoapValidationEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean
public Endpoint createSoapValidationEndpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, soapValidationService());
endpoint.publish(SOAP_VALIDATION);
enableMTOM(endpoint);
return endpoint;
}
示例4: createSoapServerSigningEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean
public Endpoint createSoapServerSigningEndpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, soapServerSigningService());
endpoint.publish(SOAP_SERVER_SIGNING);
enableMTOM(endpoint);
return endpoint;
}
示例5: metaServicesService
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean
@Lazy(value = false)
public EndpointImpl metaServicesService(Bus bus) {
EndpointImpl endpoint = new EndpointImpl(bus, metaServices());
log.info("publishing generator end point {}", endpoint);
endpoint.publish("/metaservices");
return endpoint;
}
示例6: testCustomerService
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Test
public void testCustomerService() throws Exception {
ClassPathXmlApplicationContext serverContext = null;
ClassPathXmlApplicationContext clientContext = null;
try {
serverContext = new ClassPathXmlApplicationContext(
new String[] {"spring-config/server-applicationContext.xml"});
Object server = serverContext.getBean("org.apache.camel.itest.customerrelations.CustomerServiceV1");
assertNotNull("We should get server here", server);
// add an interceptor to verify headers
EndpointImpl.class.cast(server).getServer().getEndpoint().getInInterceptors()
.add(new HeaderChecker(Phase.READ));
clientContext = new ClassPathXmlApplicationContext(
new String[] {"spring-config/client-applicationContext.xml"});
CustomerServiceV1 customerService = clientContext.getBean("org.apache.camel.itest.customerrelations.CustomerServiceV1", CustomerServiceV1.class);
// CXF 2.1.2 only apply the SOAPAction for the request message (in SoapPreProtocolOutInterceptor)
// After went through the SOAP 1.1 specification, I got that the SOAPAction is only for the request message
// So I comment out this HeaderChecker Interceptor setting up code
/*JaxWsClientProxy.class.cast(Proxy.getInvocationHandler(customerService))
.getClient().getInInterceptors().add(new HeaderChecker(Phase.READ));*/
Customer customer = customerService.getCustomer("12345");
assertNotNull("We should get Customer here", customer);
} finally {
// we're done so let's properly close the application contexts
IOHelper.close(clientContext, serverContext);
}
}
示例7: helloService
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean
// <jaxws:endpoint id="helloWorld" implementor="demo.spring.service.HelloWorldImpl" address="/HelloWorld"/>
public EndpointImpl helloService() {
Bus bus = (Bus) applicationContext.getBean(Bus.DEFAULT_BUS_ID);
Object implementor = new HelloWorldImpl();
EndpointImpl endpoint = new EndpointImpl(bus, implementor);
endpoint.publish("/hello");
endpoint.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
endpoint.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
return endpoint;
}
示例8: customizeEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
private void customizeEndpoint(EndpointConfig config, Endpoint endpoint) {
EndpointImpl e = (EndpointImpl) endpoint;
// log incoming requests
SecureAnnotationsInterceptor sai = new RespiroSecureAnnotationsInterceptor();
sai.setSecuredObject(config.getImplementor());
e.getServer().getEndpoint().getInInterceptors().add(sai);
for (EndpointCustomizer customizer : endpointCustomizers) {
customizer.customizeEndpoint(endpoint);
}
}
示例9: customizeEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Override
public void customizeEndpoint(Endpoint endpoint) {
EndpointImpl e = (EndpointImpl) endpoint;
e.getServer().getEndpoint().getInInterceptors().add(new TimingBeforeInterceptor(Phase.RECEIVE));
e.getServer().getEndpoint().getOutInterceptors().add(new TimingAfterInterceptor(Phase.SEND, metricRegistry));
}
示例10: helloWorldEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean(name = "helloWorldProviderBean")
public EndpointImpl helloWorldEndpoint() {
EndpointImpl endpoint = new EndpointImpl(new HelloWorldEndpointImpl());
endpoint.setAddress("/helloworld");
// set the CXF bus which has the loggingFeature added
endpoint.setBus(bus());
endpoint.publish();
return endpoint;
}
示例11: helloWorldEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean(name = "helloWorldProviderBean")
public EndpointImpl helloWorldEndpoint() {
EndpointImpl endpoint = new EndpointImpl(new HelloWorldEndpointImpl());
endpoint.setAddress("/helloworld");
// set the CXF bus on the endpoint
endpoint.setBus(cxf);
endpoint.publish();
return endpoint;
}
示例12: helloWorldEndpoint
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean(name = "helloWorldBean")
@Profile("cxf_pure")
public EndpointImpl helloWorldEndpoint() {
log.info("++++ {} jaxwsEndpoint hello", cxf);
EndpointImpl endpoint = new EndpointImpl(cxf, helloWorld);
endpoint.setAddress("/helloworld");
endpoint.setBus(cxf);
endpoint.publish();
return endpoint;
}
示例13: personWs
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean(name = "personServiceWs")
@Profile("cxf_pure")
public EndpointImpl personWs() {
EndpointImpl endpoint = new EndpointImpl(cxf, personService);
endpoint.setAddress("/personWs");
endpoint.setBus(cxf);
endpoint.publish();
return endpoint;
}
示例14: calculator
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Bean
public Endpoint calculator() {
EndpointImpl endpoint = new EndpointImpl(cxfBus, new Calculator());
endpoint.publish("/CalculatorService");
return endpoint;
}
示例15: testConfigurationFromSpring
import org.apache.cxf.jaxws.EndpointImpl; //导入依赖的package包/类
@Test
public void testConfigurationFromSpring() throws Exception{
ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] {"/spring/zmq-test-service-config.xml"});
EndpointImpl endpoint = (EndpointImpl)ctx.getBean("helloWorld");
ZMQ.Socket zmqSocket = zmqContext.socket(ZMQ.REQ);
zmqSocket.connect("tcp://localhost:" + ZMQ_TEST_PORT);
zmqSocket.send(FileUtils.readFileToString(new File(getClass().getResource("/samples/soap-request.xml").toURI())).getBytes(), 0);
byte[] reply = zmqSocket.recv(0);
zmqSocket.close();
endpoint.stop();
XMLAssert.assertXMLEqual(FileUtils.readFileToString(new File(getClass().getResource("/samples/soap-reply.xml").toURI())), new String(reply));
}