Package org.apache.axis2.builder
Class SOAPBuilder
- java.lang.Object
-
- org.apache.axis2.builder.SOAPBuilder
-
- All Implemented Interfaces:
Builder
,MIMEAwareBuilder
public class SOAPBuilder extends Object implements MIMEAwareBuilder
-
-
Constructor Summary
Constructors Constructor Description SOAPBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OMElement
processDocument(InputStream inputStream, String contentType, MessageContext messageContext)
Process a message.OMElement
processMIMEMessage(Attachments attachments, String contentType, MessageContext messageContext)
Process a MIME multipart message and initialize the message context.
-
-
-
Method Detail
-
processDocument
public OMElement processDocument(InputStream inputStream, String contentType, MessageContext messageContext) throws AxisFault
Description copied from interface:Builder
Process a message.The raw content of the message is provided as an input stream. It is the responsibility of the caller (typically a transport implementation) to close the stream after the message has been processed (more precisely after the SOAP infoset returned by this method is no longer used). This implies that implementations are not required to consume the input stream during the execution of this method. This enables deferred parsing of the message.
- Specified by:
processDocument
in interfaceBuilder
- Parameters:
inputStream
- the byte stream with the raw payload- Returns:
- The SOAP infoset for the given message.
- Throws:
AxisFault
-
processMIMEMessage
public OMElement processMIMEMessage(Attachments attachments, String contentType, MessageContext messageContext) throws AxisFault
Description copied from interface:MIMEAwareBuilder
Process a MIME multipart message and initialize the message context.- Specified by:
processMIMEMessage
in interfaceMIMEAwareBuilder
- Parameters:
attachments
- the MIME messagecontentType
- the content type of the root part, as specified by the type parameter in the content type of the MIME messagemessageContext
- the message context- Returns:
- the SOAP infoset for the given message (which is typically a representation of the root part of the MIME message)
- Throws:
AxisFault
-
-