public static WebServiceFeatureList toList(Iterable<WebServiceFeature> features) { if (features instanceof WebServiceFeatureList) return (WebServiceFeatureList) features; WebServiceFeatureList w = new WebServiceFeatureList(); if (features != null) w.addAll(features); return w; }
public static WebServiceFeatureList toList(Iterable<WebServiceFeature> features) { if (features instanceof WebServiceFeatureList) return (WebServiceFeatureList) features; WebServiceFeatureList w = new WebServiceFeatureList(); if (features != null) w.addAll(features); return w; }
public static WebServiceFeatureList toList(Iterable<WebServiceFeature> features) { if (features instanceof WebServiceFeatureList) return (WebServiceFeatureList) features; WebServiceFeatureList w = new WebServiceFeatureList(); if (features != null) w.addAll(features); return w; }
/** * Merge all features into one list. Returns an empty list if no lists were * passed as parameter. * * @param lists The WebServiceFeatureLists. * @return A new WebServiceFeatureList that contains all features. */ public static @NotNull WebServiceFeatureList mergeList(WebServiceFeatureList... lists) { final WebServiceFeatureList result = new WebServiceFeatureList(); for (WebServiceFeatureList list : lists) { result.addAll(list); } return result; }
/** * Merge all features into one list. Returns an empty list if no lists were * passed as parameter. * * @param lists The WebServiceFeatureLists. * @return A new WebServiceFeatureList that contains all features. */ public static @NotNull WebServiceFeatureList mergeList(WebServiceFeatureList... lists) { final WebServiceFeatureList result = new WebServiceFeatureList(); for (WebServiceFeatureList list : lists) { result.addAll(list); } return result; }
/** * Merge all features into one list. Returns an empty list if no lists were * passed as parameter. * * @param lists The WebServiceFeatureLists. * @return A new WebServiceFeatureList that contains all features. */ public static @NotNull WebServiceFeatureList mergeList(WebServiceFeatureList... lists) { final WebServiceFeatureList result = new WebServiceFeatureList(); for (WebServiceFeatureList list : lists) { result.addAll(list); } return result; }
/** * Use {@link BindingImpl#create(BindingID)} to create this. * * @param bindingId binding id * @param features * These features have a precedence over * {@link BindingID#createBuiltinFeatureList() the implicit features} * associated with the {@link BindingID}. */ SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) { super(bindingId, features); this.soapVersion = bindingId.getSOAPVersion(); //populates with required roles and updates handlerConfig setRoles(new HashSet<String>()); //Is this still required? comment out for now //setupSystemHandlerDelegate(serviceName); this.features.addAll(bindingId.createBuiltinFeatureList()); }
/** * Use {@link BindingImpl#create(BindingID)} to create this. * * @param bindingId binding id * @param features * These features have a precedence over * {@link BindingID#createBuiltinFeatureList() the implicit features} * associated with the {@link BindingID}. */ SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) { super(bindingId, features); this.soapVersion = bindingId.getSOAPVersion(); //populates with required roles and updates handlerConfig setRoles(new HashSet<String>()); //Is this still required? comment out for now //setupSystemHandlerDelegate(serviceName); this.features.addAll(bindingId.createBuiltinFeatureList()); }
/** * Use {@link BindingImpl#create(BindingID)} to create this. * * @param bindingId binding id * @param features * These features have a precedence over * {@link BindingID#createBuiltinFeatureList() the implicit features} * associated with the {@link BindingID}. */ SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) { super(bindingId, features); this.soapVersion = bindingId.getSOAPVersion(); //populates with required roles and updates handlerConfig setRoles(new HashSet<String>()); //Is this still required? comment out for now //setupSystemHandlerDelegate(serviceName); this.features.addAll(bindingId.createBuiltinFeatureList()); }
protected <T> T getPort(WSEndpointReference wsepr, QName portName, Class<T> portInterface, WebServiceFeatureList features) { ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); SEIPortInfo spi = addSEI(portName, portInterface, features); return createEndpointIFBaseProxy(wsepr,portName,portInterface,features, spi); }
protected <T> T getPort(WSEndpointReference wsepr, QName portName, Class<T> portInterface, WebServiceFeatureList features) { ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); SEIPortInfo spi = addSEI(portName, portInterface, features); return createEndpointIFBaseProxy(wsepr,portName,portInterface,features, spi); }
protected <T> T getPort(WSEndpointReference wsepr, QName portName, Class<T> portInterface, WebServiceFeatureList features) { ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); SEIPortInfo spi = addSEI(portName, portInterface, features); return createEndpointIFBaseProxy(wsepr,portName,portInterface,features, spi); }
public <T> Dispatch<T> createDispatch(QName portName, WSEndpointReference wsepr, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) { PortInfo port = safeGetPort(portName); ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); BindingImpl binding = port.createBinding(features, null, null); binding.setMode(mode); Dispatch<T> dispatch = Stubs.createDispatch(port, this, binding, aClass, mode, wsepr); serviceInterceptor.postCreateDispatch((WSBindingProvider) dispatch); return dispatch; }
public <T> Dispatch<T> createDispatch(QName portName, WSEndpointReference wsepr, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) { PortInfo port = safeGetPort(portName); ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); BindingImpl binding = port.createBinding(features, null, null); binding.setMode(mode); Dispatch<T> dispatch = Stubs.createDispatch(port, this, binding, aClass, mode, wsepr); serviceInterceptor.postCreateDispatch((WSBindingProvider) dispatch); return dispatch; }
protected Dispatch<Object> createDispatch(QName portName, WSEndpointReference wsepr, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) { PortInfo port = safeGetPort(portName); ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); BindingImpl binding = port.createBinding(features, null, null); binding.setMode(mode); Dispatch<Object> dispatch = Stubs.createJAXBDispatch( port, binding, jaxbContext, mode,wsepr); serviceInterceptor.postCreateDispatch((WSBindingProvider)dispatch); return dispatch; }
protected Dispatch<Object> createDispatch(QName portName, WSEndpointReference wsepr, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) { PortInfo port = safeGetPort(portName); ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); BindingImpl binding = port.createBinding(features, null, null); binding.setMode(mode); Dispatch<Object> dispatch = Stubs.createJAXBDispatch( port, binding, jaxbContext, mode,wsepr); serviceInterceptor.postCreateDispatch((WSBindingProvider)dispatch); return dispatch; }
public <T> Dispatch<T> createDispatch(QName portName, WSEndpointReference wsepr, Class<T> aClass, Service.Mode mode, WebServiceFeatureList features) { PortInfo port = safeGetPort(portName); ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); BindingImpl binding = port.createBinding(features, null, null); binding.setMode(mode); Dispatch<T> dispatch = Stubs.createDispatch(port, this, binding, aClass, mode, wsepr); serviceInterceptor.postCreateDispatch((WSBindingProvider) dispatch); return dispatch; }
protected Dispatch<Object> createDispatch(QName portName, WSEndpointReference wsepr, JAXBContext jaxbContext, Service.Mode mode, WebServiceFeatureList features) { PortInfo port = safeGetPort(portName); ComponentFeature cf = features.get(ComponentFeature.class); if (cf != null && !Target.STUB.equals(cf.getTarget())) { throw new IllegalArgumentException(); } ComponentsFeature csf = features.get(ComponentsFeature.class); if (csf != null) { for (ComponentFeature cfi : csf.getComponentFeatures()) { if (!Target.STUB.equals(cfi.getTarget())) throw new IllegalArgumentException(); } } features.addAll(this.features); BindingImpl binding = port.createBinding(features, null, null); binding.setMode(mode); Dispatch<Object> dispatch = Stubs.createJAXBDispatch( port, binding, jaxbContext, mode,wsepr); serviceInterceptor.postCreateDispatch((WSBindingProvider)dispatch); return dispatch; }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }
public BindingImpl createBinding(WebServiceFeatureList webServiceFeatures, Class<?> portInterface, BindingImpl existingBinding) { if (existingBinding != null) { webServiceFeatures.addAll(existingBinding.getFeatures()); } Iterable<WebServiceFeature> configFeatures; //TODO incase of Dispatch, provide a way to User for complete control of the message processing by giving // ability to turn off the WSDL/Policy based features and its associated tubes. //Even in case of Dispatch, merge all features configured via WSDL/Policy or deployment configuration if (portModel != null) { // could have merged features from this.policyMap, but some features are set in WSDLModel which are not there in PolicyMap // for ex: <wsaw:UsingAddressing> wsdl extn., and since the policyMap features are merged into WSDLModel anyway during postFinished(), // So, using here WsdlModel for merging is right. // merge features from WSDL configFeatures = portModel.getFeatures(); } else { configFeatures = PolicyUtil.getPortScopedFeatures(policyMap, owner.getServiceName(),portName); } webServiceFeatures.mergeFeatures(configFeatures, false); // merge features from interceptor webServiceFeatures.mergeFeatures(owner.serviceInterceptor.preCreateBinding(this, portInterface, webServiceFeatures), false); BindingImpl bindingImpl = BindingImpl.create(bindingId, webServiceFeatures.toArray()); owner.getHandlerConfigurator().configureHandlers(this,bindingImpl); return bindingImpl; }