com.sun.xml.internal.ws.spi.db.BindingContextFactory Java Examples
The following examples show how to use
com.sun.xml.internal.ws.spi.db.BindingContextFactory.
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: LogicalMessageImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments); }
Example #2
Source File: JAXBDispatch.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Deprecated public JAXBDispatch(QName port, JAXBContext jc, Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr) { super(port, mode, service, pipe, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #3
Source File: JAXBMessage.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** @deprecated */ public static Message create(JAXBContext context, Object jaxbObject, SOAPVersion soapVersion) { return create(BindingContextFactory.create(context),jaxbObject,soapVersion,null,null); }
Example #4
Source File: LogicalMessageImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments); }
Example #5
Source File: JAXBDispatch.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Deprecated public JAXBDispatch(QName port, JAXBContext jc, Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr) { super(port, mode, service, pipe, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #6
Source File: JAXBDispatch.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public JAXBDispatch(WSPortInfo portInfo, JAXBContext jc, Service.Mode mode, BindingImpl binding, WSEndpointReference epr) { super(portInfo, mode, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #7
Source File: JAXBMessage.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** @deprecated */ public static Message create(JAXBContext context, Object jaxbObject, SOAPVersion soapVersion) { return create(BindingContextFactory.create(context),jaxbObject,soapVersion,null,null); }
Example #8
Source File: Headers.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * Creates a {@link Header} backed a by a JAXB bean. */ public static Header create(JAXBContext context, Object o) { return new JAXBHeader(BindingContextFactory.create(context),o); }
Example #9
Source File: AbstractSEIModelImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void /*JAXBRIContext*/ createJAXBContext() { final List<TypeInfo> types = getAllTypeInfos(); final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size()); cls.addAll(additionalClasses); for (TypeInfo type : types) { cls.add((Class) type.type); } try { //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false); // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() { public BindingContext run() throws Exception { if(LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types}); } UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class); com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf = features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class); JAXBContextFactory factory = f!=null ? f.getFactory() : null; if(factory==null) factory=JAXBContextFactory.DEFAULT; // return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types); databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory); if (dmf != null) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode()); databindingInfo.setDatabindingMode(dmf .getMode()); } if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode); databindingInfo.setClassLoader(classLoader); databindingInfo.contentClasses().addAll(cls); databindingInfo.typeInfos().addAll(types); databindingInfo.properties().put("c14nSupport", Boolean.FALSE); databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace()); BindingContext bc = BindingContextFactory.create(databindingInfo); if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "Created binding context: " + bc.getClass().getName()); // System.out.println("---------------------- databinding " + bc); return bc; } }); // createBridgeMap(types); createBondMap(types); } catch (PrivilegedActionException e) { throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e); } knownNamespaceURIs = new ArrayList<String>(); for (String namespace : bindingContext.getKnownNamespaceURIs()) { if (namespace.length() > 0) { if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS)) knownNamespaceURIs.add(namespace); } } marshallers = new Pool.Marshaller(jaxbContext); //return getJAXBContext(); }
Example #10
Source File: LogicalMessageImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments); }
Example #11
Source File: JAXBDispatch.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Deprecated public JAXBDispatch(QName port, JAXBContext jc, Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr) { super(port, mode, service, pipe, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #12
Source File: JAXBDispatch.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public JAXBDispatch(WSPortInfo portInfo, JAXBContext jc, Service.Mode mode, BindingImpl binding, WSEndpointReference epr) { super(portInfo, mode, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #13
Source File: JAXBMessage.java From hottub with GNU General Public License v2.0 | 4 votes |
/** @deprecated */ public static Message create(JAXBContext context, Object jaxbObject, SOAPVersion soapVersion) { return create(BindingContextFactory.create(context),jaxbObject,soapVersion,null,null); }
Example #14
Source File: Headers.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * Creates a {@link Header} backed a by a JAXB bean. */ public static Header create(JAXBContext context, Object o) { return new JAXBHeader(BindingContextFactory.create(context),o); }
Example #15
Source File: AbstractSEIModelImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
private void /*JAXBRIContext*/ createJAXBContext() { final List<TypeInfo> types = getAllTypeInfos(); final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size()); cls.addAll(additionalClasses); for (TypeInfo type : types) { cls.add((Class) type.type); } try { //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false); // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() { public BindingContext run() throws Exception { if(LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types}); } UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class); com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf = features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class); JAXBContextFactory factory = f!=null ? f.getFactory() : null; if(factory==null) factory=JAXBContextFactory.DEFAULT; // return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types); databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory); if (dmf != null) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode()); databindingInfo.setDatabindingMode(dmf .getMode()); } if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode); databindingInfo.setClassLoader(classLoader); databindingInfo.contentClasses().addAll(cls); databindingInfo.typeInfos().addAll(types); databindingInfo.properties().put("c14nSupport", Boolean.FALSE); databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace()); BindingContext bc = BindingContextFactory.create(databindingInfo); if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "Created binding context: " + bc.getClass().getName()); // System.out.println("---------------------- databinding " + bc); return bc; } }); // createBridgeMap(types); createBondMap(types); } catch (PrivilegedActionException e) { throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e); } knownNamespaceURIs = new ArrayList<String>(); for (String namespace : bindingContext.getKnownNamespaceURIs()) { if (namespace.length() > 0) { if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS)) knownNamespaceURIs.add(namespace); } } marshallers = new Pool.Marshaller(jaxbContext); //return getJAXBContext(); }
Example #16
Source File: JAXBMessage.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** @deprecated */ public static Message create(JAXBContext context, Object jaxbObject, SOAPVersion soapVersion) { return create(BindingContextFactory.create(context),jaxbObject,soapVersion,null,null); }
Example #17
Source File: JAXBDispatch.java From hottub with GNU General Public License v2.0 | 4 votes |
@Deprecated public JAXBDispatch(QName port, JAXBContext jc, Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr) { super(port, mode, service, pipe, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #18
Source File: JAXBDispatch.java From hottub with GNU General Public License v2.0 | 4 votes |
public JAXBDispatch(WSPortInfo portInfo, JAXBContext jc, Service.Mode mode, BindingImpl binding, WSEndpointReference epr) { super(portInfo, mode, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #19
Source File: JAXBMessage.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** @deprecated */ public static Message create(JAXBContext context, Object jaxbObject, SOAPVersion soapVersion) { return create(BindingContextFactory.create(context),jaxbObject,soapVersion,null,null); }
Example #20
Source File: Headers.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * Creates a {@link Header} backed a by a JAXB bean. */ public static Header create(JAXBContext context, Object o) { return new JAXBHeader(BindingContextFactory.create(context),o); }
Example #21
Source File: AbstractSEIModelImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private void /*JAXBRIContext*/ createJAXBContext() { final List<TypeInfo> types = getAllTypeInfos(); final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size()); cls.addAll(additionalClasses); for (TypeInfo type : types) { cls.add((Class) type.type); } try { //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false); // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() { public BindingContext run() throws Exception { if(LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types}); } UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class); com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf = features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class); JAXBContextFactory factory = f!=null ? f.getFactory() : null; if(factory==null) factory=JAXBContextFactory.DEFAULT; // return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types); databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory); if (dmf != null) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode()); databindingInfo.setDatabindingMode(dmf .getMode()); } if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode); databindingInfo.setClassLoader(classLoader); databindingInfo.contentClasses().addAll(cls); databindingInfo.typeInfos().addAll(types); databindingInfo.properties().put("c14nSupport", Boolean.FALSE); databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace()); BindingContext bc = BindingContextFactory.create(databindingInfo); if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "Created binding context: " + bc.getClass().getName()); // System.out.println("---------------------- databinding " + bc); return bc; } }); // createBridgeMap(types); createBondMap(types); } catch (PrivilegedActionException e) { throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e); } knownNamespaceURIs = new ArrayList<String>(); for (String namespace : bindingContext.getKnownNamespaceURIs()) { if (namespace.length() > 0) { if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS)) knownNamespaceURIs.add(namespace); } } marshallers = new Pool.Marshaller(jaxbContext); //return getJAXBContext(); }
Example #22
Source File: LogicalMessageImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments); }
Example #23
Source File: JAXBDispatch.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Deprecated public JAXBDispatch(QName port, JAXBContext jc, Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr) { super(port, mode, service, pipe, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #24
Source File: JAXBDispatch.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public JAXBDispatch(WSPortInfo portInfo, JAXBContext jc, Service.Mode mode, BindingImpl binding, WSEndpointReference epr) { super(portInfo, mode, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #25
Source File: JAXBMessage.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** @deprecated */ public static Message create(JAXBContext context, Object jaxbObject, SOAPVersion soapVersion) { return create(BindingContextFactory.create(context),jaxbObject,soapVersion,null,null); }
Example #26
Source File: Headers.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * Creates a {@link Header} backed a by a JAXB bean. */ public static Header create(JAXBContext context, Object o) { return new JAXBHeader(BindingContextFactory.create(context),o); }
Example #27
Source File: AbstractSEIModelImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private void /*JAXBRIContext*/ createJAXBContext() { final List<TypeInfo> types = getAllTypeInfos(); final List<Class> cls = new ArrayList<Class>(types.size() + additionalClasses.size()); cls.addAll(additionalClasses); for (TypeInfo type : types) { cls.add((Class) type.type); } try { //jaxbContext = JAXBRIContext.newInstance(cls, types, targetNamespace, false); // Need to avoid doPriv block once JAXB is fixed. Afterwards, use the above bindingContext = AccessController.doPrivileged(new PrivilegedExceptionAction<BindingContext>() { public BindingContext run() throws Exception { if(LOGGER.isLoggable(Level.FINEST)) { LOGGER.log(Level.FINEST, "Creating JAXBContext with classes={0} and types={1}", new Object[]{cls, types}); } UsesJAXBContextFeature f = features.get(UsesJAXBContextFeature.class); com.oracle.webservices.internal.api.databinding.DatabindingModeFeature dmf = features.get(com.oracle.webservices.internal.api.databinding.DatabindingModeFeature.class); JAXBContextFactory factory = f!=null ? f.getFactory() : null; if(factory==null) factory=JAXBContextFactory.DEFAULT; // return factory.createJAXBContext(AbstractSEIModelImpl.this,cls,types); databindingInfo.properties().put(JAXBContextFactory.class.getName(), factory); if (dmf != null) { if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "DatabindingModeFeature in SEI specifies mode: {0}", dmf.getMode()); databindingInfo.setDatabindingMode(dmf .getMode()); } if (f!=null) databindingInfo.setDatabindingMode(BindingContextFactory.DefaultDatabindingMode); databindingInfo.setClassLoader(classLoader); databindingInfo.contentClasses().addAll(cls); databindingInfo.typeInfos().addAll(types); databindingInfo.properties().put("c14nSupport", Boolean.FALSE); databindingInfo.setDefaultNamespace(AbstractSEIModelImpl.this.getDefaultSchemaNamespace()); BindingContext bc = BindingContextFactory.create(databindingInfo); if (LOGGER.isLoggable(Level.FINE)) LOGGER.log(Level.FINE, "Created binding context: " + bc.getClass().getName()); // System.out.println("---------------------- databinding " + bc); return bc; } }); // createBridgeMap(types); createBondMap(types); } catch (PrivilegedActionException e) { throw new WebServiceException(ModelerMessages.UNABLE_TO_CREATE_JAXB_CONTEXT(), e); } knownNamespaceURIs = new ArrayList<String>(); for (String namespace : bindingContext.getKnownNamespaceURIs()) { if (namespace.length() > 0) { if (!namespace.equals(SOAPNamespaceConstants.XSD) && !namespace.equals(SOAPNamespaceConstants.XMLNS)) knownNamespaceURIs.add(namespace); } } marshallers = new Pool.Marshaller(jaxbContext); //return getJAXBContext(); }
Example #28
Source File: LogicalMessageImpl.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments); }
Example #29
Source File: JAXBDispatch.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Deprecated public JAXBDispatch(QName port, JAXBContext jc, Service.Mode mode, WSServiceDelegate service, Tube pipe, BindingImpl binding, WSEndpointReference epr) { super(port, mode, service, pipe, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }
Example #30
Source File: JAXBDispatch.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public JAXBDispatch(WSPortInfo portInfo, JAXBContext jc, Service.Mode mode, BindingImpl binding, WSEndpointReference epr) { super(portInfo, mode, binding, epr); this.jaxbcontext = jc; this.isContextSupported = BindingContextFactory.isContextSupported(jc); }