Class DeferredMessageBuilder
java.lang.Object
org.apache.synapse.transport.passthru.util.DeferredMessageBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuilder(String contentType, org.apache.axis2.builder.Builder builder) voidaddFormatter(String contentType, org.apache.axis2.transport.MessageFormatter messageFormatter) static org.apache.axis2.builder.BuildercreateBuilder(String className) static org.apache.axis2.transport.MessageFormattercreateFormatter(String className) static StringgetContentType(String contentType, org.apache.axis2.context.MessageContext msgContext) This method is from org.apache.axis2.transport.TransportUtils - it was hack placed in Axis2 Transport to enable responses with text/xml to be processed using the ApplicationXMLBuilder (which is technically wrong, it should be the duty of the backend service to send the correct content type, which makes the most sense (refer RFC 1049), alas, tis not the way of the World).org.apache.axiom.om.OMElementgetDocument(org.apache.axis2.context.MessageContext msgCtx, InputStream in)
-
Field Details
-
RELAY_FORMATTERS_MAP
- See Also:
-
FORCED_RELAY_FORMATTER
- See Also:
-
-
Constructor Details
-
DeferredMessageBuilder
public DeferredMessageBuilder()
-
-
Method Details
-
getBuilders
-
addBuilder
-
addFormatter
public void addFormatter(String contentType, org.apache.axis2.transport.MessageFormatter messageFormatter) -
getFormatters
-
getDocument
public org.apache.axiom.om.OMElement getDocument(org.apache.axis2.context.MessageContext msgCtx, InputStream in) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
createBuilder
public static org.apache.axis2.builder.Builder createBuilder(String className) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
createFormatter
public static org.apache.axis2.transport.MessageFormatter createFormatter(String className) throws org.apache.axis2.AxisFault - Throws:
org.apache.axis2.AxisFault
-
getContentType
public static String getContentType(String contentType, org.apache.axis2.context.MessageContext msgContext) This method is from org.apache.axis2.transport.TransportUtils - it was hack placed in Axis2 Transport to enable responses with text/xml to be processed using the ApplicationXMLBuilder (which is technically wrong, it should be the duty of the backend service to send the correct content type, which makes the most sense (refer RFC 1049), alas, tis not the way of the World).- Parameters:
contentType-msgContext-- Returns:
- MIME content type.
-