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; }
/** * Set appropriate handlers for the port/service/bindings. */ protected void initHandlers() throws Exception { final PortInfoImpl portInfo = new PortInfoImpl(implInfo.getBindingType(), serviceFactory.getEndpointName(), service.getName()); handlerResolver = new HandlerResolverImpl(port.getHandlerChains(), port.getInjections(), context); final List<Handler> chain = handlerResolver.getHandlerChain(portInfo); getBinding().setHandlerChain(chain); }
/** * Set appropriate handlers for the port/service/bindings. */ protected void initHandlers() throws Exception { PortInfoImpl portInfo = new PortInfoImpl(implInfo.getBindingType(), serviceFactory.getEndpointName(), service.getName()); handlerResolver = new HandlerResolverImpl(port.getHandlerChains(), port.getInjections(), context); List<Handler> chain = handlerResolver.getHandlerChain(portInfo); getBinding().setHandlerChain(chain); }
final Iterator<Injection> injections = port.getInjections().iterator(); while (injections.hasNext()) { final Injection next = injections.next(); final InjectionProcessor<Object> injectionProcessor = new InjectionProcessor<Object>(instance, port.getInjections(), null, null, unwrap(context), bindings); injectionProcessor.createInstance(); implementor = injectionProcessor.getInstance();
final Iterator<Injection> injections = port.getInjections().iterator(); while (injections.hasNext()) { final Injection next = injections.next(); final InjectionProcessor<Object> injectionProcessor = new InjectionProcessor<Object>(instance, port.getInjections(), null, null, unwrap(context), bindings); injectionProcessor.createInstance(); implementor = injectionProcessor.getInstance();