- java.lang.Object
-
- javax.xml.soap.MessageFactory
-
- com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
-
- Direct Known Subclasses:
SOAPMessageFactory1_1Impl,SOAPMessageFactory1_2Impl,SOAPMessageFactoryDynamicImpl
public class MessageFactoryImpl extends 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 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 SOAPMessagecreateMessage()SOAPMessagecreateMessage(boolean isFastInfoset, boolean acceptFastInfoset)SOAPMessagecreateMessage(String protocol)SOAPMessagecreateMessage(MimeHeaders headers, InputStream in)SOAPMessagecreateMessage(MimeHeaders headers, XMLStreamReader reader)protected static StringgetContentType(MimeHeaders headers)OutputStreamlisten(OutputStream newListener)voidsetLazyAttachmentOptimization(boolean flag)-
Methods inherited from class javax.xml.soap.MessageFactory
newInstance, newInstance
-
-
-
-
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 SOAPMessage createMessage() throws SOAPException
- Specified by:
createMessagein classMessageFactory- Throws:
SOAPException
-
createMessage
public SOAPMessage createMessage(String protocol) throws SOAPException
- Throws:
SOAPException
-
createMessage
public SOAPMessage createMessage(boolean isFastInfoset, boolean acceptFastInfoset) throws SOAPException
- Throws:
SOAPException
-
createMessage
public SOAPMessage createMessage(MimeHeaders headers, XMLStreamReader reader) throws SOAPException, IOException
- Throws:
SOAPExceptionIOException
-
createMessage
public SOAPMessage createMessage(MimeHeaders headers, InputStream in) throws SOAPException, IOException
- Specified by:
createMessagein classMessageFactory- Throws:
SOAPExceptionIOException
-
getContentType
protected static final String getContentType(MimeHeaders headers)
-
setLazyAttachmentOptimization
public void setLazyAttachmentOptimization(boolean flag)
-
-