com.sun.xml.messaging.saaj.soap
Class MessageFactoryImpl

java.lang.Object
  extended by javax.xml.soap.MessageFactory
      extended by 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
protected  boolean lazyAttachments
           
protected  OutputStream listener
           
protected static Logger log
           
 
Constructor Summary
MessageFactoryImpl()
           
 
Method Summary
 SOAPMessage createMessage()
           
 SOAPMessage createMessage(boolean isFastInfoset, boolean acceptFastInfoset)
           
 SOAPMessage createMessage(MimeHeaders headers, InputStream in)
           
 SOAPMessage createMessage(MimeHeaders headers, XMLStreamReader reader)
           
 SOAPMessage createMessage(String protocol)
           
protected static String getContentType(MimeHeaders headers)
           
 OutputStream listen(OutputStream newListener)
           
 void setLazyAttachmentOptimization(boolean flag)
           
 
Methods inherited from class javax.xml.soap.MessageFactory
newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log

listener

protected OutputStream listener

lazyAttachments

protected boolean lazyAttachments
Constructor Detail

MessageFactoryImpl

public MessageFactoryImpl()
Method Detail

listen

public OutputStream listen(OutputStream newListener)

createMessage

public SOAPMessage createMessage()
                          throws SOAPException
Specified by:
createMessage in class MessageFactory
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:
SOAPException
IOException

createMessage

public SOAPMessage createMessage(MimeHeaders headers,
                                 InputStream in)
                          throws SOAPException,
                                 IOException
Specified by:
createMessage in class MessageFactory
Throws:
SOAPException
IOException

getContentType

protected static final String getContentType(MimeHeaders headers)

setLazyAttachmentOptimization

public void setLazyAttachmentOptimization(boolean flag)


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.