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; }
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; }
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; }