Module com.sun.xml.messaging.saaj
Class SOAPMessageFactory1_2Impl
java.lang.Object
jakarta.xml.soap.MessageFactory
com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
com.sun.xml.messaging.saaj.soap.ver1_2.SOAPMessageFactory1_2Impl
-
Field Summary
Fields inherited from class com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
lazyAttachments, listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a newSOAPMessageobject with the defaultSOAPPart,SOAPEnvelope,SOAPBody, andSOAPHeaderobjects.createMessage(boolean isFastInfoset, boolean acceptFastInfoset) createMessage(MimeHeaders headers, InputStream in) Internalizes the contents of the givenInputStreamobject into a newSOAPMessageobject and returns theSOAPMessageobject.Methods inherited from class com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
createMessage, createMessage, getContentType, listen, setLazyAttachmentOptimizationMethods inherited from class jakarta.xml.soap.MessageFactory
newInstance, newInstance
-
Constructor Details
-
SOAPMessageFactory1_2Impl
public SOAPMessageFactory1_2Impl()
-
-
Method Details
-
createMessage
Description copied from class:MessageFactoryCreates a newSOAPMessageobject with the defaultSOAPPart,SOAPEnvelope,SOAPBody, andSOAPHeaderobjects. Profile-specific message factories can choose to pre-populate theSOAPMessageobject with profile-specific headers.Content can be added to this message's
SOAPPartobject, and the message can be sent "as is" when a message containing only a SOAP part is sufficient. Otherwise, theSOAPMessageobject needs to create one or moreAttachmentPartobjects and add them to itself. Any content that is not in XML format must be in anAttachmentPartobject.- Overrides:
createMessagein classMessageFactoryImpl- Returns:
- a new
SOAPMessageobject - Throws:
SOAPException- if a SOAP error occurs
-
createMessage
public SOAPMessage createMessage(boolean isFastInfoset, boolean acceptFastInfoset) throws SOAPException - Overrides:
createMessagein classMessageFactoryImpl- Throws:
SOAPException
-
createMessage
public SOAPMessage createMessage(MimeHeaders headers, InputStream in) throws IOException, SOAPExceptionImpl Description copied from class:MessageFactoryInternalizes the contents of the givenInputStreamobject into a newSOAPMessageobject and returns theSOAPMessageobject.- Overrides:
createMessagein classMessageFactoryImpl- Parameters:
headers- the transport-specific headers passed to the message in a transport-independent fashion for creation of the messagein- theInputStreamobject that contains the data for a message- Returns:
- a new
SOAPMessageobject containing the data from the givenInputStreamobject - Throws:
IOException- if there is a problem in reading data from the input streamSOAPExceptionImpl
-