Java Code Examples for com.sun.xml.internal.ws.api.databinding.DatabindingConfig#getFeatures()
The following examples show how to use
com.sun.xml.internal.ws.api.databinding.DatabindingConfig#getFeatures() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DatabindingFactoryImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 2
Source File: DatabindingFactoryImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 3
Source File: DatabindingFactoryImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 4
Source File: DatabindingFactoryImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 5
Source File: DatabindingFactoryImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 6
Source File: DatabindingFactoryImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 7
Source File: DatabindingFactoryImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 8
Source File: DatabindingFactoryImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
String databindingMode(DatabindingConfig config) { if ( config.getMappingInfo() != null && config.getMappingInfo().getDatabindingMode() != null) return config.getMappingInfo().getDatabindingMode(); if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) { if (f instanceof DatabindingModeFeature) { DatabindingModeFeature dmf = (DatabindingModeFeature) f; config.properties().putAll(dmf.getProperties()); return dmf.getMode(); } } return null; }
Example 9
Source File: RuntimeModeler.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }
Example 10
Source File: RuntimeModeler.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }
Example 11
Source File: RuntimeModeler.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }
Example 12
Source File: RuntimeModeler.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }
Example 13
Source File: RuntimeModeler.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }
Example 14
Source File: RuntimeModeler.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }
Example 15
Source File: RuntimeModeler.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }
Example 16
Source File: RuntimeModeler.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * * creates an instance of RunTimeModeler given a <code>sei</code> and <code>binding</code> * @param portClass The SEI class to be modeled. * @param serviceName The ServiceName to use instead of one calculated from the implementation class * @param wsdlPort {@link com.sun.xml.internal.ws.api.model.wsdl.WSDLPort} * @param features web service features */ /*public RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, @NotNull WSDLPortImpl wsdlPort, @NotNull WebServiceFeature... features){ this(portClass, serviceName, wsdlPort, wsdlPort.getBinding().getBindingId(), features); }*/ /*private RuntimeModeler(@NotNull Class portClass, @NotNull QName serviceName, WSDLPortImpl binding, BindingID bindingId, @NotNull WebServiceFeature... features) { this.portClass = portClass; this.serviceName = serviceName; this.binding = binding; this.bindingId = bindingId; this.features = features; }*/ public RuntimeModeler(@NotNull DatabindingConfig config){ this.portClass = (config.getEndpointClass() != null)? config.getEndpointClass() : config.getContractClass(); this.serviceName = config.getMappingInfo().getServiceName(); this.binding = config.getWsdlPort(); this.classLoader = config.getClassLoader(); this.portName = config.getMappingInfo().getPortName(); this.config = config; this.wsBinding = config.getWSBinding(); metadataReader = config.getMetadataReader(); targetNamespace = config.getMappingInfo().getTargetNamespace(); if (metadataReader == null) metadataReader = new ReflectAnnotationReader(); if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else { this.bindingId = config.getMappingInfo().getBindingID(); this.features = WebServiceFeatureList.toList(config.getFeatures()); if (binding != null) bindingId = binding.getBinding().getBindingId(); if (bindingId == null) bindingId = getDefaultBindingID(); if (!features.contains(MTOMFeature.class)) { MTOM mtomAn = getAnnotation(portClass, MTOM.class); if (mtomAn != null) features.add(WebServiceFeatureList.getFeature(mtomAn)); } if (!features.contains(com.oracle.webservices.internal.api.EnvelopeStyleFeature.class)) { com.oracle.webservices.internal.api.EnvelopeStyle es = getAnnotation(portClass, com.oracle.webservices.internal.api.EnvelopeStyle.class); if (es != null) features.add(WebServiceFeatureList.getFeature(es)); } this.wsBinding = bindingId.createBinding(features); } }