当前位置: 首页>>代码示例>>Java>>正文


Java EndpointImpl类代码示例

本文整理汇总了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;
}
 
开发者ID:esig,项目名称:dss-demonstrations,代码行数:8,代码来源:CXFConfig.java

示例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;
}
 
开发者ID:esig,项目名称:dss-demonstrations,代码行数:8,代码来源:CXFConfig.java

示例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;
}
 
开发者ID:esig,项目名称:dss-demonstrations,代码行数:8,代码来源:CXFConfig.java

示例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;
}
 
开发者ID:esig,项目名称:dss-demonstrations,代码行数:8,代码来源:CXFConfig.java

示例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;
}
 
开发者ID:vrk-kpa,项目名称:xroad-catalog,代码行数:9,代码来源:DevelopmentConfiguration.java

示例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);
    }
}
 
开发者ID:HydAu,项目名称:Camel,代码行数:32,代码来源:CustomerServicesTest.java

示例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;
}
 
开发者ID:TheAndruu,项目名称:spring-cxf,代码行数:12,代码来源:Application.java

示例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);
        }

    }
 
开发者ID:kantega,项目名称:respiro,代码行数:15,代码来源:CxfPlugin.java

示例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));
}
 
开发者ID:kantega,项目名称:respiro,代码行数:8,代码来源:CxfMetricsPlugin.java

示例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;
}
 
开发者ID:code-not-found,项目名称:jaxws-cxf,代码行数:11,代码来源:CxfServlet.java

示例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;
}
 
开发者ID:code-not-found,项目名称:jaxws-cxf,代码行数:11,代码来源:CxfServlet.java

示例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;
}
 
开发者ID:przodownikR1,项目名称:cxf_over_jms_kata,代码行数:11,代码来源:CxfConfig.java

示例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;

}
 
开发者ID:przodownikR1,项目名称:cxf_over_jms_kata,代码行数:11,代码来源:CxfConfig.java

示例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;
}
 
开发者ID:asarkar,项目名称:jax-ws,代码行数:9,代码来源:CXFConfig.java

示例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));
}
 
开发者ID:claudemamo,项目名称:cxf-rt-transports-zeromq,代码行数:16,代码来源:ZMQDestinationTest.java


注:本文中的org.apache.cxf.jaxws.EndpointImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。