private static boolean isSticky(WSBinding binding) { boolean tSticky = false; WebServiceFeature[] features = binding.getFeatures().toArray(); for(WebServiceFeature f : features) { if (f instanceof StickyFeature) { tSticky = true; break; } } return tSticky; }
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; }
/** * Should be called after decode(). * Set the state so that such state is used by encode(). */ private void postDecode(Packet p) { p.setFastInfosetDisabled(isFastInfosetDisabled); if(features.isEnabled(MTOMFeature.class)) p.checkMtomAcceptable(); // p.setMtomAcceptable( isMtomAcceptable(p.acceptableMimeTypes) ); MTOMFeature mtomFeature = features.get(MTOMFeature.class); if (mtomFeature != null) { p.setMtomFeature(mtomFeature); } if (!useFastInfosetForEncoding) { useFastInfosetForEncoding = p.getFastInfosetAcceptable(fiMimeType); // useFastInfosetForEncoding = isFastInfosetAcceptable(p.acceptableMimeTypes); } }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
public MessageContextFactory(WSFeatureList wsf) { features = wsf; envelopeStyle = features.get(EnvelopeStyleFeature.class); if (envelopeStyle == null) {//Default to SOAP11 envelopeStyle = new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}); features.mergeFeatures(new WebServiceFeature[]{envelopeStyle}, false); } for (EnvelopeStyle.Style s : envelopeStyle.getStyles()) { if (s.isXML()) { if (xmlCodec == null) xmlCodec = Codecs.createXMLCodec(features); } else { if (soapCodec == null) soapCodec = Codecs.createSOAPBindingCodec(features); singleSoapStyle = s; } } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
public MessageContextFactory(WSFeatureList wsf) { features = wsf; envelopeStyle = features.get(EnvelopeStyleFeature.class); if (envelopeStyle == null) {//Default to SOAP11 envelopeStyle = new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}); features.mergeFeatures(new WebServiceFeature[]{envelopeStyle}, false); } for (EnvelopeStyle.Style s : envelopeStyle.getStyles()) { if (s.isXML()) { if (xmlCodec == null) xmlCodec = Codecs.createXMLCodec(features); } else { if (soapCodec == null) soapCodec = Codecs.createSOAPBindingCodec(features); singleSoapStyle = s; } } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
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; }
/** * Should be called after decode(). * Set the state so that such state is used by encode(). */ private void postDecode(Packet p) { p.setFastInfosetDisabled(isFastInfosetDisabled); if(features.isEnabled(MTOMFeature.class)) p.checkMtomAcceptable(); // p.setMtomAcceptable( isMtomAcceptable(p.acceptableMimeTypes) ); MTOMFeature mtomFeature = features.get(MTOMFeature.class); if (mtomFeature != null) { p.setMtomFeature(mtomFeature); } if (!useFastInfosetForEncoding) { useFastInfosetForEncoding = p.getFastInfosetAcceptable(fiMimeType); // useFastInfosetForEncoding = isFastInfosetAcceptable(p.acceptableMimeTypes); } }
private static boolean isSticky(WSBinding binding) { boolean tSticky = false; WebServiceFeature[] features = binding.getFeatures().toArray(); for(WebServiceFeature f : features) { if (f instanceof StickyFeature) { tSticky = true; break; } } return tSticky; }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
public MessageContextFactory(WSFeatureList wsf) { features = wsf; envelopeStyle = features.get(EnvelopeStyleFeature.class); if (envelopeStyle == null) {//Default to SOAP11 envelopeStyle = new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}); features.mergeFeatures(new WebServiceFeature[]{envelopeStyle}, false); } for (EnvelopeStyle.Style s : envelopeStyle.getStyles()) { if (s.isXML()) { if (xmlCodec == null) xmlCodec = Codecs.createXMLCodec(features); } else { if (soapCodec == null) soapCodec = Codecs.createSOAPBindingCodec(features); singleSoapStyle = s; } } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
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; }
/** * Should be called after decode(). * Set the state so that such state is used by encode(). */ private void postDecode(Packet p) { p.setFastInfosetDisabled(isFastInfosetDisabled); if(features.isEnabled(MTOMFeature.class)) p.checkMtomAcceptable(); // p.setMtomAcceptable( isMtomAcceptable(p.acceptableMimeTypes) ); MTOMFeature mtomFeature = features.get(MTOMFeature.class); if (mtomFeature != null) { p.setMtomFeature(mtomFeature); } if (!useFastInfosetForEncoding) { useFastInfosetForEncoding = p.getFastInfosetAcceptable(fiMimeType); // useFastInfosetForEncoding = isFastInfosetAcceptable(p.acceptableMimeTypes); } }
private static boolean isSticky(WSBinding binding) { boolean tSticky = false; WebServiceFeature[] features = binding.getFeatures().toArray(); for(WebServiceFeature f : features) { if (f instanceof StickyFeature) { tSticky = true; break; } } return tSticky; }
binding.getFeatures().mergeFeatures(new WebServiceFeature[]{externalMetadataFeature}, true);
static public SOAPVersion getSoapVersion(WSFeatureList features) { { EnvelopeStyleFeature env = features.get(EnvelopeStyleFeature.class); if (env != null) { return SOAPVersion.from(env); } } com.oracle.webservices.api.EnvelopeStyleFeature env = features.get(com.oracle.webservices.api.EnvelopeStyleFeature.class); return env != null ? SOAPVersion.from(env) : null; }