本文整理汇总了Java中org.apache.cxf.endpoint.Endpoint.getBinding方法的典型用法代码示例。如果您正苦于以下问题:Java Endpoint.getBinding方法的具体用法?Java Endpoint.getBinding怎么用?Java Endpoint.getBinding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.cxf.endpoint.Endpoint
的用法示例。
在下文中一共展示了Endpoint.getBinding方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setupEndpoint
import org.apache.cxf.endpoint.Endpoint; //导入方法依赖的package包/类
protected void setupEndpoint(Endpoint ep) {
resetPartTypes(ep.getBinding());
Class<?> fmt = Source.class;
if (ep.getBinding() instanceof SoapBinding) {
ep.getInInterceptors().add(new SAAJInInterceptor());
SAAJOutInterceptor out = new SAAJOutInterceptor();
ep.getOutInterceptors().add(out);
ep.getOutInterceptors().add(new CxfMessageSoapHeaderOutInterceptor());
ep.getOutInterceptors().add(new MessageModeOutInterceptor(out, ep.getBinding().getBindingInfo().getName()));
fmt = SOAPMessage.class;
} else {
ep.getOutInterceptors().add(new MessageModeOutInterceptor(Source.class, ep.getBinding().getBindingInfo().getName()));
}
ep.getInInterceptors().add(new MessageModeInInterceptor(fmt, ep.getBinding().getBindingInfo().getName()));
ep.put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);
// need to remove the wrapper class and holder interceptor
removeInterceptors(ep.getInInterceptors(), REMOVING_IN_INTERCEPTORS);
removeInterceptors(ep.getOutInterceptors(), REMOVING_OUT_INTERCEPTORS);
}
示例2: changeTransportUriToZmq
import org.apache.cxf.endpoint.Endpoint; //导入方法依赖的package包/类
private void changeTransportUriToZmq(Endpoint ep) {
if (ep.getBinding() == null) {
return;
}
if (ep.getBinding().getBindingInfo() == null) {
return;
}
BindingInfo bindingInfo = ep.getBinding().getBindingInfo();
if (bindingInfo instanceof SoapBindingInfo) {
SoapBindingInfo soapBindingInfo = (SoapBindingInfo) bindingInfo;
soapBindingInfo.setTransportURI("http://schemas.xmlsoap.org/soap/zmq");
}
}
示例3: init
import org.apache.cxf.endpoint.Endpoint; //导入方法依赖的package包/类
protected void init() {
// configure handlers
try {
initHandlers();
} catch (Exception e) {
throw new WebServiceException("Error configuring handlers", e);
}
// Set service to invoke the target ejb
service.setInvoker(new EjbMethodInvoker(this.bus, beanContext));
// Remove interceptors that perform handler processing since
// handler processing must happen within the EJB container.
Endpoint endpoint = getEndpoint();
removeHandlerInterceptors(bus.getInInterceptors());
removeHandlerInterceptors(endpoint.getInInterceptors());
removeHandlerInterceptors(endpoint.getBinding().getInInterceptors());
removeHandlerInterceptors(endpoint.getService().getInInterceptors());
// Install SAAJ interceptor
if (endpoint.getBinding() instanceof SoapBinding && !this.implInfo.isWebServiceProvider()) {
endpoint.getService().getInInterceptors().add(new SAAJInInterceptor());
}
// Install WSS4J interceptor
ConfigureCxfSecurity.configure(endpoint, port);
}