Package com.sun.xml.ws.api.pipe
Class Codecs
java.lang.Object
com.sun.xml.ws.api.pipe.Codecs
Factory methods for some of the
Codec implementations.
This class provides methods to create codecs for SOAP/HTTP binding. It allows to replace default SOAP envelope(primary part in MIME message) codec in the whole Codec.
This is a part of the JAX-WS RI internal API so that
Tube and transport implementations can reuse the implementations
done inside the JAX-WS.
- Author:
- Jitendra Kotamraju, Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SOAPBindingCodeccreateSOAPBindingCodec(WSBinding binding, StreamSOAPCodec xmlEnvelopeCodec) This creates a fullCodecfor SOAP binding using the primary XML codec argument.static SOAPBindingCodeccreateSOAPBindingCodec(WSFeatureList feature) This creates a fullCodecfor SOAP binding.static StreamSOAPCodeccreateSOAPEnvelopeXmlCodec(SOAPVersion version) Creates a defaultCodecthat can be used to used to decode XML infoset in SOAP envelope(primary part in MIME message).static StreamSOAPCodeccreateSOAPEnvelopeXmlCodec(WSBinding binding) Deprecated.static StreamSOAPCodeccreateSOAPEnvelopeXmlCodec(WSFeatureList features) Creates a defaultCodecthat can be used to used to decode XML infoset in SOAP envelope(primary part in MIME message).static CodeccreateXMLCodec(WSFeatureList feature) This creates a fullCodecfor XML binding.
-
Constructor Details
-
Codecs
public Codecs()
-
-
Method Details
-
createSOAPBindingCodec
This creates a fullCodecfor SOAP binding.- Parameters:
feature- the WebServiceFeature objects- Returns:
- non null codec to parse entire SOAP message(including MIME parts)
-
createXMLCodec
This creates a fullCodecfor XML binding.- Parameters:
feature- the WebServiceFeature objects- Returns:
- non null codec to parse entire XML message.
-
createSOAPBindingCodec
@NotNull public static SOAPBindingCodec createSOAPBindingCodec(WSBinding binding, StreamSOAPCodec xmlEnvelopeCodec) This creates a fullCodecfor SOAP binding using the primary XML codec argument. The codec argument is used to encode/decode SOAP envelopes while the returned codec is responsible for encoding/decoding the whole message.Creates codecs can be set during the
Tubeline assembly process.- Parameters:
binding- binding of the webservicexmlEnvelopeCodec- SOAP envelope codec- Returns:
- non null codec to parse entire SOAP message(including MIME parts)
- See Also:
-
createSOAPEnvelopeXmlCodec
Creates a defaultCodecthat can be used to used to decode XML infoset in SOAP envelope(primary part in MIME message). New codecs can be written using this codec as delegate.- Parameters:
version- SOAP version of the binding- Returns:
- non null default xml codec
-
createSOAPEnvelopeXmlCodec
Deprecated.Creates a defaultCodecthat can be used to used to decode XML infoset in SOAP envelope(primary part in MIME message). New codecs can be written using this codec as delegate. WSBinding parameter is used to get SOAP version and features.- Parameters:
binding- SOAP version and features are used from this binding- Returns:
- non null default xml codec
-
createSOAPEnvelopeXmlCodec
Creates a defaultCodecthat can be used to used to decode XML infoset in SOAP envelope(primary part in MIME message). New codecs can be written using this codec as delegate. WSFeatureList parameter is used to get SOAP version and features.- Parameters:
features- SOAP version and features are used from this WSFeatureList- Returns:
- non null default xml codec
-
createSOAPEnvelopeXmlCodec(WSFeatureList)