本文整理汇总了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;
}
示例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: 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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}