public class MultipartFormDataFormatter extends java.lang.Object implements MessageFormatter
| Constructor and Description |
|---|
MultipartFormDataFormatter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatSOAPAction(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction) |
byte[] |
getBytes(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format) |
java.lang.String |
getContentType(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.lang.String soapAction)
Different message formats can set their own content types
Eg: JSONFormatter can set the content type as application/json
|
java.net.URL |
getTargetAddress(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.net.URL targetURL)
Some message formats may want to alter the target url.
|
void |
writeTo(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
java.io.OutputStream outputStream,
boolean preserve)
To support deffered writing transports as in http chunking..
|
public byte[] getBytes(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format) throws AxisFault
getBytes in interface MessageFormatterAxisFaultpublic void writeTo(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.io.OutputStream outputStream, boolean preserve) throws AxisFault
writeTo in interface MessageFormatteroutputStream - preserve - :
do not consume the OM when this is set..AxisFaultpublic java.lang.String getContentType(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.lang.String soapAction)
getContentType in interface MessageFormattermessageContext - format - soapAction - public java.net.URL getTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.net.URL targetURL) throws AxisFault
getTargetAddress in interface MessageFormatterAxisFaultpublic java.lang.String formatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, java.lang.String soapAction)
formatSOAPAction in interface MessageFormatterCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.