Class XFormURLEncodedFormatter
- java.lang.Object
-
- org.apache.synapse.commons.formatters.XFormURLEncodedFormatter
-
- All Implemented Interfaces:
org.apache.axis2.transport.MessageFormatter
public class XFormURLEncodedFormatter extends Object implements org.apache.axis2.transport.MessageFormatter
Formates the request message as application/x-www-form-urlencoded
-
-
Constructor Summary
Constructors Constructor Description XFormURLEncodedFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringformatSOAPAction(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)byte[]getBytes(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format)StringgetContentType(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)URLgetTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL)voidwriteTo(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, OutputStream outputStream, boolean preserve)
-
-
-
Method Detail
-
getBytes
public byte[] getBytes(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format) throws org.apache.axis2.AxisFault- Specified by:
getBytesin interfaceorg.apache.axis2.transport.MessageFormatter- Throws:
org.apache.axis2.AxisFault
-
writeTo
public void writeTo(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, OutputStream outputStream, boolean preserve) throws org.apache.axis2.AxisFault- Specified by:
writeToin interfaceorg.apache.axis2.transport.MessageFormatter- Throws:
org.apache.axis2.AxisFault
-
getContentType
public String getContentType(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, String soapAction)
- Specified by:
getContentTypein interfaceorg.apache.axis2.transport.MessageFormatter
-
getTargetAddress
public URL getTargetAddress(org.apache.axis2.context.MessageContext messageContext, org.apache.axiom.om.OMOutputFormat format, URL targetURL) throws org.apache.axis2.AxisFault
- Specified by:
getTargetAddressin interfaceorg.apache.axis2.transport.MessageFormatter- Throws:
org.apache.axis2.AxisFault
-
-