Package com.sun.xml.messaging.saaj.soap
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.MessageFactoryA factory for creating SOAP messages. Converted to a placeholder for common functionality between SOAP implementations.- Author:
- Phil Goodwin (phil.goodwin@sun.com)
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanlazyAttachmentsprotected OutputStreamlistenerprotected static Loggerlog
-
Constructor Summary
Constructors Constructor Description MessageFactoryImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.xml.soap.SOAPMessagecreateMessage()jakarta.xml.soap.SOAPMessagecreateMessage(boolean isFastInfoset, boolean acceptFastInfoset)jakarta.xml.soap.SOAPMessagecreateMessage(jakarta.xml.soap.MimeHeaders headers, InputStream in)jakarta.xml.soap.SOAPMessagecreateMessage(jakarta.xml.soap.MimeHeaders headers, XMLStreamReader reader)jakarta.xml.soap.SOAPMessagecreateMessage(String protocol)protected static StringgetContentType(jakarta.xml.soap.MimeHeaders headers)OutputStreamlisten(OutputStream newListener)voidsetLazyAttachmentOptimization(boolean flag)
-
-
-
Field Detail
-
log
protected static final Logger log
-
listener
protected OutputStream listener
-
lazyAttachments
protected boolean lazyAttachments
-
-
Method Detail
-
listen
public OutputStream listen(OutputStream newListener)
-
createMessage
public jakarta.xml.soap.SOAPMessage createMessage() throws jakarta.xml.soap.SOAPException- Specified by:
createMessagein classjakarta.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.SOAPExceptionIOException
-
createMessage
public jakarta.xml.soap.SOAPMessage createMessage(jakarta.xml.soap.MimeHeaders headers, InputStream in) throws jakarta.xml.soap.SOAPException, IOException- Specified by:
createMessagein classjakarta.xml.soap.MessageFactory- Throws:
jakarta.xml.soap.SOAPExceptionIOException
-
getContentType
protected static final String getContentType(jakarta.xml.soap.MimeHeaders headers)
-
setLazyAttachmentOptimization
public void setLazyAttachmentOptimization(boolean flag)
-
-