com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.pipe.StreamSOAPCodec.
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: SOAPBindingCodec.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Obtain an FI SOAP codec instance using reflection. */ private static Codec getFICodec(StreamSOAPCodec soapCodec, SOAPVersion version) { try { Class c = Class.forName("com.sun.xml.internal.ws.encoding.fastinfoset.FastInfosetStreamSOAPCodec"); Method m = c.getMethod("create", StreamSOAPCodec.class, SOAPVersion.class); return (Codec)m.invoke(null, soapCodec, version); } catch (Exception e) { // TODO Log that FI cannot be loaded return null; } }
Example #2
Source File: SOAPBindingCodec.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Obtain an FI SOAP codec instance using reflection. */ private static Codec getFICodec(StreamSOAPCodec soapCodec, SOAPVersion version) { try { Class c = Class.forName("com.sun.xml.internal.ws.encoding.fastinfoset.FastInfosetStreamSOAPCodec"); Method m = c.getMethod("create", StreamSOAPCodec.class, SOAPVersion.class); return (Codec)m.invoke(null, soapCodec, version); } catch (Exception e) { // TODO Log that FI cannot be loaded return null; } }
Example #3
Source File: FastInfosetStreamSOAPCodec.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Creates a new {@link FastInfosetStreamSOAPCodec} instance. * * @param version the SOAP version of the codec. * @param retainState if true the Codec should retain the state of * vocabulary tables for multiple encode/decode invocations. * @return a new {@link FastInfosetStreamSOAPCodec} instance. */ public static FastInfosetStreamSOAPCodec create(StreamSOAPCodec soapCodec, SOAPVersion version, boolean retainState) { if(version==null) // this decoder is for SOAP, not for XML/HTTP throw new IllegalArgumentException(); switch(version) { case SOAP_11: return new FastInfosetStreamSOAP11Codec(soapCodec, retainState); case SOAP_12: return new FastInfosetStreamSOAP12Codec(soapCodec, retainState); default: throw new AssertionError(); } }
Example #4
Source File: FastInfosetStreamSOAPCodec.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Creates a new {@link FastInfosetStreamSOAPCodec} instance. * * @param version the SOAP version of the codec. * @param retainState if true the Codec should retain the state of * vocabulary tables for multiple encode/decode invocations. * @return a new {@link FastInfosetStreamSOAPCodec} instance. */ public static FastInfosetStreamSOAPCodec create(StreamSOAPCodec soapCodec, SOAPVersion version, boolean retainState) { if(version==null) // this decoder is for SOAP, not for XML/HTTP throw new IllegalArgumentException(); switch(version) { case SOAP_11: return new FastInfosetStreamSOAP11Codec(soapCodec, retainState); case SOAP_12: return new FastInfosetStreamSOAP12Codec(soapCodec, retainState); default: throw new AssertionError(); } }
Example #5
Source File: MtomCodec.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
MtomCodec(SOAPVersion version, StreamSOAPCodec codec, WSFeatureList features){ super(version, features); this.codec = codec; sf = features.get(SerializationFeature.class); MTOMFeature mtom = features.get(MTOMFeature.class); if(mtom == null) this.mtomFeature = new MTOMFeature(); else this.mtomFeature = mtom; }
Example #6
Source File: MtomCodec.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
MtomCodec(SOAPVersion version, StreamSOAPCodec codec, WSFeatureList features){ super(version, features); this.codec = codec; sf = features.get(SerializationFeature.class); MTOMFeature mtom = features.get(MTOMFeature.class); if(mtom == null) this.mtomFeature = new MTOMFeature(); else this.mtomFeature = mtom; }
Example #7
Source File: FastInfosetStreamSOAPCodec.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Creates a new {@link FastInfosetStreamSOAPCodec} instance. * * @param version the SOAP version of the codec. * @param retainState if true the Codec should retain the state of * vocabulary tables for multiple encode/decode invocations. * @return a new {@link FastInfosetStreamSOAPCodec} instance. */ public static FastInfosetStreamSOAPCodec create(StreamSOAPCodec soapCodec, SOAPVersion version, boolean retainState) { if(version==null) // this decoder is for SOAP, not for XML/HTTP throw new IllegalArgumentException(); switch(version) { case SOAP_11: return new FastInfosetStreamSOAP11Codec(soapCodec, retainState); case SOAP_12: return new FastInfosetStreamSOAP12Codec(soapCodec, retainState); default: throw new AssertionError(); } }
Example #8
Source File: MtomCodec.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
MtomCodec(SOAPVersion version, StreamSOAPCodec codec, WSFeatureList features){ super(version, features); this.codec = codec; sf = features.get(SerializationFeature.class); MTOMFeature mtom = features.get(MTOMFeature.class); if(mtom == null) this.mtomFeature = new MTOMFeature(); else this.mtomFeature = mtom; }
Example #9
Source File: SOAPBindingCodec.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Obtain an FI SOAP codec instance using reflection. */ private static Codec getFICodec(StreamSOAPCodec soapCodec, SOAPVersion version) { try { Class c = Class.forName("com.sun.xml.internal.ws.encoding.fastinfoset.FastInfosetStreamSOAPCodec"); Method m = c.getMethod("create", StreamSOAPCodec.class, SOAPVersion.class); return (Codec)m.invoke(null, soapCodec, version); } catch (Exception e) { // TODO Log that FI cannot be loaded return null; } }
Example #10
Source File: SOAPBindingCodec.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Obtain an FI SOAP codec instance using reflection. */ private static Codec getFICodec(StreamSOAPCodec soapCodec, SOAPVersion version) { try { Class c = Class.forName("com.sun.xml.internal.ws.encoding.fastinfoset.FastInfosetStreamSOAPCodec"); Method m = c.getMethod("create", StreamSOAPCodec.class, SOAPVersion.class); return (Codec)m.invoke(null, soapCodec, version); } catch (Exception e) { // TODO Log that FI cannot be loaded return null; } }
Example #11
Source File: MtomCodec.java From hottub with GNU General Public License v2.0 | 5 votes |
MtomCodec(SOAPVersion version, StreamSOAPCodec codec, WSFeatureList features){ super(version, features); this.codec = codec; sf = features.get(SerializationFeature.class); MTOMFeature mtom = features.get(MTOMFeature.class); if(mtom == null) this.mtomFeature = new MTOMFeature(); else this.mtomFeature = mtom; }
Example #12
Source File: FastInfosetStreamSOAPCodec.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Creates a new {@link FastInfosetStreamSOAPCodec} instance. * * @param version the SOAP version of the codec. * @param retainState if true the Codec should retain the state of * vocabulary tables for multiple encode/decode invocations. * @return a new {@link FastInfosetStreamSOAPCodec} instance. */ public static FastInfosetStreamSOAPCodec create(StreamSOAPCodec soapCodec, SOAPVersion version, boolean retainState) { if(version==null) // this decoder is for SOAP, not for XML/HTTP throw new IllegalArgumentException(); switch(version) { case SOAP_11: return new FastInfosetStreamSOAP11Codec(soapCodec, retainState); case SOAP_12: return new FastInfosetStreamSOAP12Codec(soapCodec, retainState); default: throw new AssertionError(); } }
Example #13
Source File: SOAPBindingCodec.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Obtain an FI SOAP codec instance using reflection. */ private static Codec getFICodec(StreamSOAPCodec soapCodec, SOAPVersion version) { try { Class c = Class.forName("com.sun.xml.internal.ws.encoding.fastinfoset.FastInfosetStreamSOAPCodec"); Method m = c.getMethod("create", StreamSOAPCodec.class, SOAPVersion.class); return (Codec)m.invoke(null, soapCodec, version); } catch (Exception e) { // TODO Log that FI cannot be loaded return null; } }
Example #14
Source File: MtomCodec.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
MtomCodec(SOAPVersion version, StreamSOAPCodec codec, WSFeatureList features){ super(version, features); this.codec = codec; sf = features.get(SerializationFeature.class); MTOMFeature mtom = features.get(MTOMFeature.class); if(mtom == null) this.mtomFeature = new MTOMFeature(); else this.mtomFeature = mtom; }
Example #15
Source File: SOAPBindingCodec.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Obtain an FI SOAP codec instance using reflection. */ private static Codec getFICodec(StreamSOAPCodec soapCodec, SOAPVersion version) { try { Class c = Class.forName("com.sun.xml.internal.ws.encoding.fastinfoset.FastInfosetStreamSOAPCodec"); Method m = c.getMethod("create", StreamSOAPCodec.class, SOAPVersion.class); return (Codec)m.invoke(null, soapCodec, version); } catch (Exception e) { // TODO Log that FI cannot be loaded return null; } }
Example #16
Source File: FastInfosetStreamSOAPCodec.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Creates a new {@link FastInfosetStreamSOAPCodec} instance. * * @param version the SOAP version of the codec. * @param retainState if true the Codec should retain the state of * vocabulary tables for multiple encode/decode invocations. * @return a new {@link FastInfosetStreamSOAPCodec} instance. */ public static FastInfosetStreamSOAPCodec create(StreamSOAPCodec soapCodec, SOAPVersion version, boolean retainState) { if(version==null) // this decoder is for SOAP, not for XML/HTTP throw new IllegalArgumentException(); switch(version) { case SOAP_11: return new FastInfosetStreamSOAP11Codec(soapCodec, retainState); case SOAP_12: return new FastInfosetStreamSOAP12Codec(soapCodec, retainState); default: throw new AssertionError(); } }
Example #17
Source File: MtomCodec.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public MtomCodec copy() { return new MtomCodec(version, (StreamSOAPCodec)codec.copy(), features); }
Example #18
Source File: FastInfosetStreamSOAP12Codec.java From hottub with GNU General Public License v2.0 | 4 votes |
FastInfosetStreamSOAP12Codec(StreamSOAPCodec soapCodec, boolean retainState) { super(soapCodec, SOAPVersion.SOAP_12, retainState, (retainState) ? FastInfosetMIMETypes.STATEFUL_SOAP_12 : FastInfosetMIMETypes.SOAP_12); }
Example #19
Source File: MtomCodec.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public MtomCodec copy() { return new MtomCodec(version, (StreamSOAPCodec)codec.copy(), features); }
Example #20
Source File: SOAPBindingCodec.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public StreamSOAPCodec getXMLCodec() { return xmlSoapCodec; }
Example #21
Source File: SOAPBindingCodec.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public StreamSOAPCodec getXMLCodec() { return xmlSoapCodec; }
Example #22
Source File: FastInfosetStreamSOAPCodec.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
FastInfosetStreamSOAPCodec(StreamSOAPCodec soapCodec, SOAPVersion soapVersion, boolean retainState, String mimeType) { // _soapCodec = StreamSOAPCodec.create(soapVersion); _soapCodec = soapCodec; _retainState = retainState; _defaultContentType = new ContentTypeImpl(mimeType); }
Example #23
Source File: FastInfosetStreamSOAP11Codec.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
FastInfosetStreamSOAP11Codec(StreamSOAPCodec soapCodec, boolean retainState) { super(soapCodec, SOAPVersion.SOAP_11, retainState, (retainState) ? FastInfosetMIMETypes.STATEFUL_SOAP_11 : FastInfosetMIMETypes.SOAP_11); }
Example #24
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 #25
Source File: MtomCodec.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public MtomCodec copy() { return new MtomCodec(version, (StreamSOAPCodec)codec.copy(), features); }
Example #26
Source File: SOAPBindingCodec.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public SOAPBindingCodec copy() { return new SOAPBindingCodec(features, (StreamSOAPCodec)xmlSoapCodec.copy()); }
Example #27
Source File: FastInfosetStreamSOAPCodec.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
FastInfosetStreamSOAPCodec(StreamSOAPCodec soapCodec, SOAPVersion soapVersion, boolean retainState, String mimeType) { // _soapCodec = StreamSOAPCodec.create(soapVersion); _soapCodec = soapCodec; _retainState = retainState; _defaultContentType = new ContentTypeImpl(mimeType); }
Example #28
Source File: SOAPBindingCodec.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public StreamSOAPCodec getXMLCodec() { return xmlSoapCodec; }
Example #29
Source File: MtomCodec.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Override public MtomCodec copy() { return new MtomCodec(version, (StreamSOAPCodec)codec.copy(), features); }
Example #30
Source File: FastInfosetStreamSOAP12Codec.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
FastInfosetStreamSOAP12Codec(StreamSOAPCodec soapCodec, boolean retainState) { super(soapCodec, SOAPVersion.SOAP_12, retainState, (retainState) ? FastInfosetMIMETypes.STATEFUL_SOAP_12 : FastInfosetMIMETypes.SOAP_12); }