Class WSTCPFastInfosetStreamCodec

java.lang.Object
com.sun.xml.ws.transport.tcp.encoding.WSTCPFastInfosetStreamCodec
All Implemented Interfaces:
com.sun.xml.ws.api.pipe.Codec
Direct Known Subclasses:
WSTCPFastInfosetStreamSOAP11Codec, WSTCPFastInfosetStreamSOAP12Codec

public abstract class WSTCPFastInfosetStreamCodec extends Object implements com.sun.xml.ws.api.pipe.Codec
Author:
Alexey Stashok
  • Field Details

    • _defaultContentType

      protected final com.sun.xml.ws.api.pipe.ContentType _defaultContentType
  • Method Details

    • getMimeType

      public String getMimeType()
      Specified by:
      getMimeType in interface com.sun.xml.ws.api.pipe.Codec
    • getStaticContentType

      public com.sun.xml.ws.api.pipe.ContentType getStaticContentType(com.sun.xml.ws.api.message.Packet packet)
      Specified by:
      getStaticContentType in interface com.sun.xml.ws.api.pipe.Codec
    • encode

      public com.sun.xml.ws.api.pipe.ContentType encode(com.sun.xml.ws.api.message.Packet packet, OutputStream out)
      Specified by:
      encode in interface com.sun.xml.ws.api.pipe.Codec
    • encode

      public com.sun.xml.ws.api.pipe.ContentType encode(com.sun.xml.ws.api.message.Packet packet, WritableByteChannel buffer)
      Specified by:
      encode in interface com.sun.xml.ws.api.pipe.Codec
    • decode

      public void decode(InputStream in, String contentType, com.sun.xml.ws.api.message.Packet response) throws IOException
      Specified by:
      decode in interface com.sun.xml.ws.api.pipe.Codec
      Throws:
      IOException
    • decode

      public void decode(ReadableByteChannel in, String contentType, com.sun.xml.ws.api.message.Packet response)
      Specified by:
      decode in interface com.sun.xml.ws.api.pipe.Codec
    • createHeader

      protected abstract com.sun.xml.ws.message.stream.StreamHeader createHeader(XMLStreamReader reader, com.sun.xml.stream.buffer.XMLStreamBuffer mark)
    • getContentType

      protected abstract com.sun.xml.ws.api.pipe.ContentType getContentType(String soapAction)
    • create

      public static WSTCPFastInfosetStreamCodec create(com.sun.xml.ws.api.pipe.StreamSOAPCodec soapCodec, com.sun.xml.ws.api.SOAPVersion version, WSTCPFastInfosetStreamReaderRecyclable.RecycleAwareListener readerRecycleListener, boolean retainState)
      Creates a new FastInfosetStreamSOAPCodec instance.
      Parameters:
      version - the SOAP version of the codec.
      Returns:
      a new WSTCPFastInfosetStreamCodec instance.