Package org.apache.synapse.util
Class CallMediatorEnrichUtil
- java.lang.Object
-
- org.apache.synapse.util.CallMediatorEnrichUtil
-
public class CallMediatorEnrichUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description CallMediatorEnrichUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
buildMessage(MessageContext synCtx)
static int
convertTypeToInt(String type)
static Source
createSourceWithBody()
static Source
createSourceWithProperty(String propertyName)
static Target
createTargetWithBody()
static Target
createTargetWithProperty(String propertyName)
static void
doEnrich(MessageContext synCtx, Source source, Target target, String sourceContentType)
static void
enrichTextToBody(org.apache.axis2.context.MessageContext axis2MessageContext, String content)
static com.google.gson.JsonElement
getJsonElement(Object sourceProperty, com.google.gson.JsonParser jsonParser)
static SynapseLog
getLog(MessageContext synCtx)
static void
handleException(String msg, Exception e, MessageContext msgContext)
static void
handleException(String msg, MessageContext msgContext)
static void
handleTransportHeaders(Object resultValue, org.apache.axis2.context.MessageContext axis2MessageCtx)
static void
preservetransportHeaders(MessageContext synMsgCtx, Map originalTransportHeaders)
static void
setContentType(MessageContext synCtx, String targetMessageType, String targetContentType)
-
-
-
Field Detail
-
CUSTOM
public static final String CUSTOM
- See Also:
- Constant Field Values
-
PROPERTY
public static final String PROPERTY
- See Also:
- Constant Field Values
-
ENVELOPE
public static final String ENVELOPE
- See Also:
- Constant Field Values
-
BODY
public static final String BODY
- See Also:
- Constant Field Values
-
INLINE
public static final String INLINE
- See Also:
- Constant Field Values
-
JSON_TYPE
public static final String JSON_TYPE
- See Also:
- Constant Field Values
-
TEXT_TYPE
public static final String TEXT_TYPE
- See Also:
- Constant Field Values
-
log
public static final org.apache.commons.logging.Log log
-
-
Method Detail
-
convertTypeToInt
public static int convertTypeToInt(String type)
-
doEnrich
public static void doEnrich(MessageContext synCtx, Source source, Target target, String sourceContentType)
-
enrichTextToBody
public static void enrichTextToBody(org.apache.axis2.context.MessageContext axis2MessageContext, String content)
-
getJsonElement
public static com.google.gson.JsonElement getJsonElement(Object sourceProperty, com.google.gson.JsonParser jsonParser)
-
preservetransportHeaders
public static void preservetransportHeaders(MessageContext synMsgCtx, Map originalTransportHeaders)
-
setContentType
public static void setContentType(MessageContext synCtx, String targetMessageType, String targetContentType)
-
handleTransportHeaders
public static void handleTransportHeaders(Object resultValue, org.apache.axis2.context.MessageContext axis2MessageCtx)
-
buildMessage
public static void buildMessage(MessageContext synCtx)
-
createSourceWithBody
public static Source createSourceWithBody()
-
createTargetWithBody
public static Target createTargetWithBody()
-
handleException
public static void handleException(String msg, Exception e, MessageContext msgContext)
-
handleException
public static void handleException(String msg, MessageContext msgContext)
-
getLog
public static SynapseLog getLog(MessageContext synCtx)
-
-