public class FastInfosetPOXMessageFormatter extends Object implements MessageFormatter
Constructor and Description |
---|
FastInfosetPOXMessageFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
formatSOAPAction(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction)
Plain Fast Infoset message formatter doesn't need to handle SOAP.
|
byte[] |
getBytes(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format)
Retrieves the raw bytes from the SOAP envelop.
|
String |
getContentType(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
String soapAction)
Returns the content type
|
URL |
getTargetAddress(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
URL targetURL)
Returns the target address to send the response
FIXME This is very HTTP specific.
|
void |
writeTo(MessageContext messageContext,
org.apache.axiom.om.OMOutputFormat format,
OutputStream outputStream,
boolean preserve)
Write the SOAP envelop to the given OutputStream.
|
public String formatSOAPAction(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
formatSOAPAction
in interface MessageFormatter
MessageFormatter.formatSOAPAction(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)
public byte[] getBytes(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format) throws AxisFault
getBytes
in interface MessageFormatter
AxisFault
MessageFormatter.getBytes(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat)
public String getContentType(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
getContentType
in interface MessageFormatter
MessageFormatter.getContentType(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.lang.String)
public URL getTargetAddress(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) throws AxisFault
getTargetAddress
in interface MessageFormatter
AxisFault
MessageFormatter.getTargetAddress(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.net.URL)
public void writeTo(MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, OutputStream outputStream, boolean preserve) throws AxisFault
writeTo
in interface MessageFormatter
preserve
- :
do not consume the OM when this is set..AxisFault
MessageFormatter.writeTo(org.apache.axis2.context.MessageContext, org.apache.axiom.om.OMOutputFormat, java.io.OutputStream, boolean)
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.