com.sun.xml.internal.ws.streaming.SourceReaderFactory Java Examples
The following examples show how to use
com.sun.xml.internal.ws.streaming.SourceReaderFactory.
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: PayloadSourceMessage.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #2
Source File: PayloadSourceMessage.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #3
Source File: PayloadSourceMessage.java From hottub with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #4
Source File: PayloadSourceMessage.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #5
Source File: PayloadSourceMessage.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #6
Source File: PayloadSourceMessage.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #7
Source File: PayloadSourceMessage.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #8
Source File: PayloadSourceMessage.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public PayloadSourceMessage(@Nullable MessageHeaders headers, @NotNull Source payload, @NotNull AttachmentSet attSet, @NotNull SOAPVersion soapVersion) { super(headers, SourceReaderFactory.createSourceReader(payload, true), attSet, soapVersion); }
Example #9
Source File: ProtocolSourceMessage.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }
Example #10
Source File: WSDLFetcher.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { return null; } }, docLocator); XMLStreamReader xsr = null; XMLStreamWriter xsw = null; OutputStream os = null; String resolvedRootWsdl = null; try { XMLOutputFactory writerfactory; xsr = SourceReaderFactory.createSourceReader(new DOMSource(forest.get(doc)), false); writerfactory = XMLOutputFactory.newInstance(); resolvedRootWsdl = docLocator.getLocationFor(null, doc); File outFile = new File(destDir, resolvedRootWsdl); os = new FileOutputStream(outFile); if(options.verbose) { listener.message(WscompileMessages.WSIMPORT_DOCUMENT_DOWNLOAD(doc,outFile)); } xsw = writerfactory.createXMLStreamWriter(os); //DOMForest eats away the whitespace loosing all the indentation, so write it through // indenting writer for better readability of fetched documents IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw); wsdlPatcher.bridge(xsr, indentingWriter); options.addGeneratedFile(outFile); } finally { try { if (xsr != null) {xsr.close();} if (xsw != null) {xsw.close();} } finally { if (os != null) {os.close();} } } return resolvedRootWsdl; }
Example #11
Source File: RuntimeWSDLParser.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private XMLStreamReader createReader(@NotNull Source src) throws XMLStreamException { return new TidyXMLStreamReader(SourceReaderFactory.createSourceReader(src, true), null); }
Example #12
Source File: ProtocolSourceMessage.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }
Example #13
Source File: WSDLFetcher.java From hottub with GNU General Public License v2.0 | 4 votes |
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { return null; } }, docLocator); XMLStreamReader xsr = null; XMLStreamWriter xsw = null; OutputStream os = null; String resolvedRootWsdl = null; try { XMLOutputFactory writerfactory; xsr = SourceReaderFactory.createSourceReader(new DOMSource(forest.get(doc)), false); writerfactory = XMLOutputFactory.newInstance(); resolvedRootWsdl = docLocator.getLocationFor(null, doc); File outFile = new File(destDir, resolvedRootWsdl); os = new FileOutputStream(outFile); if(options.verbose) { listener.message(WscompileMessages.WSIMPORT_DOCUMENT_DOWNLOAD(doc,outFile)); } xsw = writerfactory.createXMLStreamWriter(os); //DOMForest eats away the whitespace loosing all the indentation, so write it through // indenting writer for better readability of fetched documents IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw); wsdlPatcher.bridge(xsr, indentingWriter); options.addGeneratedFile(outFile); } finally { try { if (xsr != null) {xsr.close();} if (xsw != null) {xsw.close();} } finally { if (os != null) {os.close();} } } return resolvedRootWsdl; }
Example #14
Source File: RuntimeWSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private XMLStreamReader createReader(@NotNull Source src) throws XMLStreamException { return new TidyXMLStreamReader(SourceReaderFactory.createSourceReader(src, true), null); }
Example #15
Source File: RuntimeWSDLParser.java From hottub with GNU General Public License v2.0 | 4 votes |
private XMLStreamReader createReader(@NotNull Source src) throws XMLStreamException { return new TidyXMLStreamReader(SourceReaderFactory.createSourceReader(src, true), null); }
Example #16
Source File: ProtocolSourceMessage.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }
Example #17
Source File: ProtocolSourceMessage.java From hottub with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }
Example #18
Source File: WSDLFetcher.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { return null; } }, docLocator); XMLStreamReader xsr = null; XMLStreamWriter xsw = null; OutputStream os = null; String resolvedRootWsdl = null; try { XMLOutputFactory writerfactory; xsr = SourceReaderFactory.createSourceReader(new DOMSource(forest.get(doc)), false); writerfactory = XMLOutputFactory.newInstance(); resolvedRootWsdl = docLocator.getLocationFor(null, doc); File outFile = new File(destDir, resolvedRootWsdl); os = new FileOutputStream(outFile); if(options.verbose) { listener.message(WscompileMessages.WSIMPORT_DOCUMENT_DOWNLOAD(doc,outFile)); } xsw = writerfactory.createXMLStreamWriter(os); //DOMForest eats away the whitespace loosing all the indentation, so write it through // indenting writer for better readability of fetched documents IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw); wsdlPatcher.bridge(xsr, indentingWriter); options.addGeneratedFile(outFile); } finally { try { if (xsr != null) {xsr.close();} if (xsw != null) {xsw.close();} } finally { if (os != null) {os.close();} } } return resolvedRootWsdl; }
Example #19
Source File: WSDLFetcher.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { return null; } }, docLocator); XMLStreamReader xsr = null; XMLStreamWriter xsw = null; OutputStream os = null; String resolvedRootWsdl = null; try { XMLOutputFactory writerfactory; xsr = SourceReaderFactory.createSourceReader(new DOMSource(forest.get(doc)), false); writerfactory = XMLOutputFactory.newInstance(); resolvedRootWsdl = docLocator.getLocationFor(null, doc); File outFile = new File(destDir, resolvedRootWsdl); os = new FileOutputStream(outFile); if(options.verbose) { listener.message(WscompileMessages.WSIMPORT_DOCUMENT_DOWNLOAD(doc,outFile)); } xsw = writerfactory.createXMLStreamWriter(os); //DOMForest eats away the whitespace loosing all the indentation, so write it through // indenting writer for better readability of fetched documents IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw); wsdlPatcher.bridge(xsr, indentingWriter); options.addGeneratedFile(outFile); } finally { try { if (xsr != null) {xsr.close();} if (xsw != null) {xsw.close();} } finally { if (os != null) {os.close();} } } return resolvedRootWsdl; }
Example #20
Source File: RuntimeWSDLParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private XMLStreamReader createReader(@NotNull Source src) throws XMLStreamException { return new TidyXMLStreamReader(SourceReaderFactory.createSourceReader(src, true), null); }
Example #21
Source File: ProtocolSourceMessage.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }
Example #22
Source File: WSDLFetcher.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { return null; } }, docLocator); XMLStreamReader xsr = null; XMLStreamWriter xsw = null; OutputStream os = null; String resolvedRootWsdl = null; try { XMLOutputFactory writerfactory; xsr = SourceReaderFactory.createSourceReader(new DOMSource(forest.get(doc)), false); writerfactory = XMLOutputFactory.newInstance(); resolvedRootWsdl = docLocator.getLocationFor(null, doc); File outFile = new File(destDir, resolvedRootWsdl); os = new FileOutputStream(outFile); if(options.verbose) { listener.message(WscompileMessages.WSIMPORT_DOCUMENT_DOWNLOAD(doc,outFile)); } xsw = writerfactory.createXMLStreamWriter(os); //DOMForest eats away the whitespace loosing all the indentation, so write it through // indenting writer for better readability of fetched documents IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw); wsdlPatcher.bridge(xsr, indentingWriter); options.addGeneratedFile(outFile); } finally { try { if (xsr != null) {xsr.close();} if (xsw != null) {xsw.close();} } finally { if (os != null) {os.close();} } } return resolvedRootWsdl; }
Example #23
Source File: RuntimeWSDLParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
private XMLStreamReader createReader(@NotNull Source src) throws XMLStreamException { return new TidyXMLStreamReader(SourceReaderFactory.createSourceReader(src, true), null); }
Example #24
Source File: ProtocolSourceMessage.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }
Example #25
Source File: WSDLFetcher.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { return null; } }, docLocator); XMLStreamReader xsr = null; XMLStreamWriter xsw = null; OutputStream os = null; String resolvedRootWsdl = null; try { XMLOutputFactory writerfactory; xsr = SourceReaderFactory.createSourceReader(new DOMSource(forest.get(doc)), false); writerfactory = XMLOutputFactory.newInstance(); resolvedRootWsdl = docLocator.getLocationFor(null, doc); File outFile = new File(destDir, resolvedRootWsdl); os = new FileOutputStream(outFile); if(options.verbose) { listener.message(WscompileMessages.WSIMPORT_DOCUMENT_DOWNLOAD(doc,outFile)); } xsw = writerfactory.createXMLStreamWriter(os); //DOMForest eats away the whitespace loosing all the indentation, so write it through // indenting writer for better readability of fetched documents IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw); wsdlPatcher.bridge(xsr, indentingWriter); options.addGeneratedFile(outFile); } finally { try { if (xsr != null) {xsr.close();} if (xsw != null) {xsw.close();} } finally { if (os != null) {os.close();} } } return resolvedRootWsdl; }
Example #26
Source File: RuntimeWSDLParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private XMLStreamReader createReader(@NotNull Source src) throws XMLStreamException { return new TidyXMLStreamReader(SourceReaderFactory.createSourceReader(src, true), null); }
Example #27
Source File: ProtocolSourceMessage.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }
Example #28
Source File: WSDLFetcher.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private String fetchFile(final String doc, DOMForest forest, final Map<String, String> documentMap, File destDir) throws IOException, XMLStreamException { DocumentLocationResolver docLocator = createDocResolver(doc, forest, documentMap); WSDLPatcher wsdlPatcher = new WSDLPatcher(new PortAddressResolver() { @Override public String getAddressFor(@NotNull QName serviceName, @NotNull String portName) { return null; } }, docLocator); XMLStreamReader xsr = null; XMLStreamWriter xsw = null; OutputStream os = null; String resolvedRootWsdl = null; try { XMLOutputFactory writerfactory; xsr = SourceReaderFactory.createSourceReader(new DOMSource(forest.get(doc)), false); writerfactory = XMLOutputFactory.newInstance(); resolvedRootWsdl = docLocator.getLocationFor(null, doc); File outFile = new File(destDir, resolvedRootWsdl); os = new FileOutputStream(outFile); if(options.verbose) { listener.message(WscompileMessages.WSIMPORT_DOCUMENT_DOWNLOAD(doc,outFile)); } xsw = writerfactory.createXMLStreamWriter(os); //DOMForest eats away the whitespace loosing all the indentation, so write it through // indenting writer for better readability of fetched documents IndentingXMLStreamWriter indentingWriter = new IndentingXMLStreamWriter(xsw); wsdlPatcher.bridge(xsr, indentingWriter); options.addGeneratedFile(outFile); } finally { try { if (xsr != null) {xsr.close();} if (xsw != null) {xsw.close();} } finally { if (os != null) {os.close();} } } return resolvedRootWsdl; }
Example #29
Source File: RuntimeWSDLParser.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private XMLStreamReader createReader(@NotNull Source src) throws XMLStreamException { return new TidyXMLStreamReader(SourceReaderFactory.createSourceReader(src, true), null); }
Example #30
Source File: ProtocolSourceMessage.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public ProtocolSourceMessage(Source source, SOAPVersion soapVersion) { XMLStreamReader reader = SourceReaderFactory.createSourceReader(source, true); com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec codec = Codecs.createSOAPEnvelopeXmlCodec(soapVersion); sm = codec.decode(reader); }