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
-
public class SOAPMessageFactory1_2Impl extends MessageFactoryImpl
-
-
Field Summary
-
Fields inherited from class com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
lazyAttachments, listener
-
-
Constructor Summary
Constructors Constructor Description SOAPMessageFactory1_2Impl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SOAPMessage
createMessage()
Creates a newSOAPMessage
object with the defaultSOAPPart
,SOAPEnvelope
,SOAPBody
, andSOAPHeader
objects.SOAPMessage
createMessage(boolean isFastInfoset, boolean acceptFastInfoset)
SOAPMessage
createMessage(MimeHeaders headers, InputStream in)
Internalizes the contents of the givenInputStream
object into a newSOAPMessage
object and returns theSOAPMessage
object.-
Methods inherited from class com.sun.xml.messaging.saaj.soap.MessageFactoryImpl
createMessage, createMessage, getContentType, listen, setLazyAttachmentOptimization
-
Methods inherited from class jakarta.xml.soap.MessageFactory
newInstance, newInstance
-
-
-
-
Method Detail
-
createMessage
public SOAPMessage createMessage() throws SOAPException
Description copied from class:MessageFactory
Creates a newSOAPMessage
object with the defaultSOAPPart
,SOAPEnvelope
,SOAPBody
, andSOAPHeader
objects. Profile-specific message factories can choose to prepopulate theSOAPMessage
object with profile-specific headers.Content can be added to this message's
SOAPPart
object, and the message can be sent "as is" when a message containing only a SOAP part is sufficient. Otherwise, theSOAPMessage
object needs to create one or moreAttachmentPart
objects and add them to itself. Any content that is not in XML format must be in anAttachmentPart
object.- Overrides:
createMessage
in classMessageFactoryImpl
- Returns:
- a new
SOAPMessage
object - Throws:
SOAPException
- if a SOAP error occurs
-
createMessage
public SOAPMessage createMessage(boolean isFastInfoset, boolean acceptFastInfoset) throws SOAPException
- Overrides:
createMessage
in classMessageFactoryImpl
- Throws:
SOAPException
-
createMessage
public SOAPMessage createMessage(MimeHeaders headers, InputStream in) throws IOException, SOAPExceptionImpl
Description copied from class:MessageFactory
Internalizes the contents of the givenInputStream
object into a newSOAPMessage
object and returns theSOAPMessage
object.- Overrides:
createMessage
in classMessageFactoryImpl
- Parameters:
headers
- the transport-specific headers passed to the message in a transport-independent fashion for creation of the messagein
- theInputStream
object that contains the data for a message- Returns:
- a new
SOAPMessage
object containing the data from the givenInputStream
object - Throws:
IOException
- if there is a problem in reading data from the input streamSOAPExceptionImpl
-
-