org.apache.openejb.assembler.classic.WsBuilder.getWsdlURL()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(67)

本文整理了Java中org.apache.openejb.assembler.classic.WsBuilder.getWsdlURL()方法的一些代码示例,展示了WsBuilder.getWsdlURL()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WsBuilder.getWsdlURL()方法的具体详情如下:
包路径:org.apache.openejb.assembler.classic.WsBuilder
类名称:WsBuilder
方法名:getWsdlURL

WsBuilder.getWsdlURL介绍

暂无

代码示例

代码示例来源:origin: org.apache.tomee/openejb-core

public static PortData toPortData(final PortInfo port, final Collection<Injection> injections, final URL baseUrl, final ClassLoader classLoader) throws OpenEJBException {
  final PortData portData = new PortData();
  portData.setPortId(port.portId);
  if (port.serviceName != null && port.serviceName.length() != 0) {
    portData.setServiceName(QName.valueOf(port.serviceName));
  }
  if (port.portName != null && port.portName.length() != 0) {
    portData.setPortName(QName.valueOf(port.portName));
  }
  portData.setWsdlUrl(getWsdlURL(port.wsdlFile, baseUrl, classLoader));
  portData.getHandlerChains().addAll(toHandlerChainData(port.handlerChains, classLoader));
  portData.getInjections().addAll(injections);
  portData.setMtomEnabled(port.mtomEnabled);
  portData.setBindingID(port.binding);
  portData.setWsdlPort(port.wsdlPort);
  portData.setWsdlService(port.wsdlService);
  portData.setLocation(port.location);
  portData.setSecure("WS-SECURITY".equals(port.authMethod));
  portData.setProperties(port.properties);
  return portData;
}

代码示例来源:origin: org.apache.openejb/openejb-core

public static PortData toPortData(final PortInfo port, final Collection<Injection> injections, final URL baseUrl, final ClassLoader classLoader) throws OpenEJBException {
  final PortData portData = new PortData();
  portData.setPortId(port.portId);
  if (port.serviceName != null && port.serviceName.length() != 0) {
    portData.setServiceName(QName.valueOf(port.serviceName));
  }
  if (port.portName != null && port.portName.length() != 0) {
    portData.setPortName(QName.valueOf(port.portName));
  }
  portData.setWsdlUrl(getWsdlURL(port.wsdlFile, baseUrl, classLoader));
  portData.getHandlerChains().addAll(toHandlerChainData(port.handlerChains, classLoader));
  portData.getInjections().addAll(injections);
  portData.setMtomEnabled(port.mtomEnabled);
  portData.setBindingID(port.binding);
  portData.setWsdlPort(port.wsdlPort);
  portData.setWsdlService(port.wsdlService);
  portData.setLocation(port.location);
  portData.setSecure("WS-SECURITY".equals(port.authMethod));
  portData.setProperties(port.properties);
  return portData;
}

代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core

public static PortData toPortData(PortInfo port, Collection<Injection> injections, URL baseUrl, ClassLoader classLoader) throws OpenEJBException {
  PortData portData = new PortData();
  portData.setPortId(port.portId);
  if (port.serviceName != null && port.serviceName.length() != 0) {
    portData.setServiceName(QName.valueOf(port.serviceName));
  }
  if (port.portName != null && port.portName.length() != 0) {
    portData.setPortName(QName.valueOf(port.portName));
  }
  portData.setWsdlUrl(getWsdlURL(port.wsdlFile, baseUrl, classLoader));
  portData.getHandlerChains().addAll(toHandlerChainData(port.handlerChains, classLoader));
  portData.getInjections().addAll(injections);
  portData.setMtomEnabled(port.mtomEnabled);
  portData.setBindingID(port.binding);
  portData.setWsdlPort(port.wsdlPort);
  portData.setWsdlService(port.wsdlService);
  portData.setLocation(port.location);
  portData.setSecure("WS-SECURITY".equals(port.authMethod));
  if (portData.isSecure()) {
  portData.setSecurityProperties(port.properties);
}
  return portData;
}

相关文章