Package org.apache.synapse.core.axis2
Class Axis2FlexibleMEPClient
- java.lang.Object
-
- org.apache.synapse.core.axis2.Axis2FlexibleMEPClient
-
public class Axis2FlexibleMEPClient extends Object
This is a simple client that handles both in only and in out
-
-
Constructor Summary
Constructors Constructor Description Axis2FlexibleMEPClient()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
clearSecurtityProperties(org.apache.axis2.client.Options options)
static boolean
isMultipartContent(String contentType)
Check whether the content type is multipart or notstatic void
send(EndpointDefinition endpoint, MessageContext synapseOutMessageContext)
Based on the Axis2 client code.
-
-
-
Method Detail
-
send
public static void send(EndpointDefinition endpoint, MessageContext synapseOutMessageContext) throws org.apache.axis2.AxisFault
Based on the Axis2 client code. Sends the Axis2 Message context out and returns the Axis2 message context for the response. Here Synapse works as a Client to the service. It would expect 200 ok, 202 ok and 500 internal server error as possible responses.- Parameters:
endpoint
- the endpoint being sent to, maybe nullsynapseOutMessageContext
- the outgoing synapse message- Throws:
org.apache.axis2.AxisFault
- on errors
-
clearSecurtityProperties
public static void clearSecurtityProperties(org.apache.axis2.client.Options options)
-
isMultipartContent
public static boolean isMultipartContent(String contentType)
Check whether the content type is multipart or not- Parameters:
contentType
-- Returns:
- true for multipart content types
-
-