Class Codecs


  • public abstract class Codecs
    extends Object
    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 Detail

      • Codecs

        public Codecs()
    • Method Detail

      • createSOAPBindingCodec

        @NotNull
        public static SOAPBindingCodec createSOAPBindingCodec​(WSFeatureList feature)
        This creates a full Codec for SOAP binding.
        Parameters:
        feature - the WebServiceFeature objects
        Returns:
        non null codec to parse entire SOAP message(including MIME parts)
      • createXMLCodec

        @NotNull
        public static Codec createXMLCodec​(WSFeatureList feature)
        This creates a full Codec for XML binding.
        Parameters:
        feature - the WebServiceFeature objects
        Returns:
        non null codec to parse entire XML message.
      • createSOAPEnvelopeXmlCodec

        @NotNull
        public static StreamSOAPCodec createSOAPEnvelopeXmlCodec​(@NotNull
                                                                 SOAPVersion version)
        Creates a default Codec that 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

        @NotNull
        public static StreamSOAPCodec createSOAPEnvelopeXmlCodec​(@NotNull
                                                                 WSBinding binding)
        Creates a default Codec that 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

        @NotNull
        public static StreamSOAPCodec createSOAPEnvelopeXmlCodec​(@NotNull
                                                                 WSFeatureList features)
        Creates a default Codec that 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