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


Java EndpointImpl.publish方法代码示例

本文整理汇总了Java中org.apache.cxf.jaxws.EndpointImpl.publish方法的典型用法代码示例。如果您正苦于以下问题:Java EndpointImpl.publish方法的具体用法?Java EndpointImpl.publish怎么用?Java EndpointImpl.publish使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.cxf.jaxws.EndpointImpl的用法示例。


在下文中一共展示了EndpointImpl.publish方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: 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

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

示例8: 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

示例9: 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

示例10: 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

示例11: 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

示例12: publishEndpoint

import org.apache.cxf.jaxws.EndpointImpl; //导入方法依赖的package包/类
/**
 * Publish JAX-WS server side endpoint. Returns javax.xml.ws.Endpoint to enable further customization.
 */
public Endpoint publishEndpoint(EndpointBuilder endpointBuilder) {
    checkArgument(endpointBuilder != null, "EndpointBuilder is null");

    EndpointImpl cxfendpoint = new EndpointImpl(bus, endpointBuilder.getService());
    if(endpointBuilder.publishedEndpointUrl() != null) {
        cxfendpoint.setPublishedEndpointUrl(endpointBuilder.publishedEndpointUrl());
    }
    else if(publishedEndpointUrlPrefix != null) {
        cxfendpoint.setPublishedEndpointUrl(publishedEndpointUrlPrefix + endpointBuilder.getPath());
    }
    cxfendpoint.publish(endpointBuilder.getPath());

    // MTOM support
    if (endpointBuilder.isMtomEnabled()) {
        ((SOAPBinding)cxfendpoint.getBinding()).setMTOMEnabled(true);
    }

    Invoker invoker = cxfendpoint.getService().getInvoker();

    // validating invoker
    ValidatorFactory vf = Validation.buildDefaultValidatorFactory();
    invoker = this.createValidatingInvoker(invoker, vf.getValidator());

    if (endpointBuilder.getSessionFactory() != null) {
        // Add invoker to handle UnitOfWork annotations. Note that this invoker is set up before
        // instrumented invoker(s) in order for instrumented invoker(s) to wrap "unit of work" invoker.
        invoker = unitOfWorkInvokerBuilder.create(
                endpointBuilder.getService(), invoker, endpointBuilder.getSessionFactory());
        cxfendpoint.getService().setInvoker(invoker);
    }

    // Replace CXF service invoker with instrumented invoker(s)
    invoker = instrumentedInvokerBuilder.create(endpointBuilder.getService(), invoker);
    cxfendpoint.getService().setInvoker(invoker);

    if (endpointBuilder.getAuthentication() != null) {
        // Configure CXF in interceptor to handle basic authentication
        BasicAuthenticationInterceptor basicAuthInterceptor = this.createBasicAuthenticationInterceptor();
        basicAuthInterceptor.setAuthenticator(endpointBuilder.getAuthentication());
        cxfendpoint.getInInterceptors().add(basicAuthInterceptor);
    }

    // CXF interceptors

    if (endpointBuilder.getCxfInInterceptors() != null) {
        cxfendpoint.getInInterceptors().addAll(endpointBuilder.getCxfInInterceptors());
    }

    if (endpointBuilder.getCxfInFaultInterceptors() != null) {
        cxfendpoint.getInFaultInterceptors().addAll(endpointBuilder.getCxfInFaultInterceptors());
    }

    if (endpointBuilder.getCxfOutInterceptors() != null) {
        cxfendpoint.getOutInterceptors().addAll(endpointBuilder.getCxfOutInterceptors());
    }

    if (endpointBuilder.getCxfOutFaultInterceptors() != null) {
        cxfendpoint.getOutFaultInterceptors().addAll(endpointBuilder.getCxfOutFaultInterceptors());
    }

    if (endpointBuilder.getProperties() != null) {
        cxfendpoint.getProperties().putAll(
                endpointBuilder.getProperties());
    }

    return cxfendpoint;
}
 
开发者ID:roskart,项目名称:dropwizard-jaxws,代码行数:71,代码来源:JAXWSEnvironment.java


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