Package org.apache.axis2.builder
Interface Builder
-
- All Known Subinterfaces:
DataSourceMessageBuilder
,MIMEAwareBuilder
,TextMessageBuilder
- All Known Implementing Classes:
AbstractJSONOMBuilder
,ApplicationXMLBuilder
,BinaryBuilder
,DataSourceBuilder
,FastInfosetBuilder
,FastInfosetPOXBuilder
,JSONBadgerfishOMBuilder
,JsonBuilder
,JsonBuilder
,JSONOMBuilder
,MIMEBuilder
,MTOMBuilder
,MultipartFormDataBuilder
,PlainTextBuilder
,SOAPBuilder
,TextMessageBuilderAdapter
,UnknownContentBuilder
,XFormURLEncodedBuilder
public interface Builder
Message builder able to convert a byte stream into a SOAP infoset. Message builders are used byTransportListener
implementations to process the raw payload of the message and turn it into SOAP. Transports should useMessageProcessorSelector.getMessageBuilder(String, MessageContext)
to select the message builder appropriate for the content type of the message.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OMElement
processDocument(InputStream inputStream, String contentType, MessageContext messageContext)
Process a message.
-
-
-
Method Detail
-
processDocument
OMElement processDocument(InputStream inputStream, String contentType, MessageContext messageContext) throws AxisFault
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.
- Parameters:
inputStream
- the byte stream with the raw payloadcontentType
-messageContext
-- Returns:
- The SOAP infoset for the given message.
- Throws:
AxisFault
-
-