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