Package org.apache.axis2.builder
Interface MIMEAwareBuilder
-
- All Superinterfaces:
Builder
- All Known Implementing Classes:
MTOMBuilder
,SOAPBuilder
public interface MIMEAwareBuilder extends Builder
Extension interface forBuilder
implementations that can build a message from a MIME multipart message. This interface should be implemented by message builders associated with MIME types that can appear as the root part of a multipart message. This is the case for SwA and MTOM.The
processMIMEMessage(Attachments, String, MessageContext)
method is called byMIMEBuilder
(which is associated by default with the multipart/related MIME type) after identifying the target builder based on the content type of the root part.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OMElement
processMIMEMessage(Attachments attachments, String contentType, MessageContext messageContext)
Process a MIME multipart message and initialize the message context.-
Methods inherited from interface org.apache.axis2.builder.Builder
processDocument
-
-
-
-
Method Detail
-
processMIMEMessage
OMElement processMIMEMessage(Attachments attachments, String contentType, MessageContext messageContext) throws AxisFault
Process a MIME multipart message and initialize the message context.- 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
-
-