Class MessageFactoryImpl

java.lang.Object
jakarta.xml.soap.MessageFactory
com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
Direct Known Subclasses:
SOAPMessageFactory1_1Impl, SOAPMessageFactory1_2Impl, SOAPMessageFactoryDynamicImpl

public class MessageFactoryImpl extends jakarta.xml.soap.MessageFactory
A factory for creating SOAP messages. Converted to a placeholder for common functionality between SOAP implementations.
Author:
Phil Goodwin (phil.goodwin@sun.com)
  • Field Details

    • log

      protected static final Logger log
    • listener

      protected OutputStream listener
    • lazyAttachments

      protected boolean lazyAttachments
  • Constructor Details

    • MessageFactoryImpl

      public MessageFactoryImpl()
  • Method Details

    • listen

      public OutputStream listen(OutputStream newListener)
    • createMessage

      public jakarta.xml.soap.SOAPMessage createMessage() throws jakarta.xml.soap.SOAPException
      Specified by:
      createMessage in class jakarta.xml.soap.MessageFactory
      Throws:
      jakarta.xml.soap.SOAPException
    • createMessage

      public jakarta.xml.soap.SOAPMessage createMessage(String protocol) throws jakarta.xml.soap.SOAPException
      Throws:
      jakarta.xml.soap.SOAPException
    • createMessage

      public jakarta.xml.soap.SOAPMessage createMessage(boolean isFastInfoset, boolean acceptFastInfoset) throws jakarta.xml.soap.SOAPException
      Throws:
      jakarta.xml.soap.SOAPException
    • createMessage

      public jakarta.xml.soap.SOAPMessage createMessage(jakarta.xml.soap.MimeHeaders headers, XMLStreamReader reader) throws jakarta.xml.soap.SOAPException, IOException
      Throws:
      jakarta.xml.soap.SOAPException
      IOException
    • createMessage

      public jakarta.xml.soap.SOAPMessage createMessage(jakarta.xml.soap.MimeHeaders headers, InputStream in) throws jakarta.xml.soap.SOAPException, IOException
      Specified by:
      createMessage in class jakarta.xml.soap.MessageFactory
      Throws:
      jakarta.xml.soap.SOAPException
      IOException
    • getContentType

      protected static final String getContentType(jakarta.xml.soap.MimeHeaders headers)
    • setLazyAttachmentOptimization

      public void setLazyAttachmentOptimization(boolean flag)