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 voidbuildMessage(MessageContext synCtx)static intconvertTypeToInt(String type)static SourcecreateSourceWithBody()static SourcecreateSourceWithProperty(String propertyName)static TargetcreateTargetWithBody()static TargetcreateTargetWithProperty(String propertyName)static voiddoEnrich(MessageContext synCtx, Source source, Target target, String sourceContentType)static voidenrichTextToBody(org.apache.axis2.context.MessageContext axis2MessageContext, String content)static com.google.gson.JsonElementgetJsonElement(Object sourceProperty, com.google.gson.JsonParser jsonParser)static SynapseLoggetLog(MessageContext synCtx)static voidhandleException(String msg, Exception e, MessageContext msgContext)static voidhandleException(String msg, MessageContext msgContext)static voidhandleTransportHeaders(Object resultValue, org.apache.axis2.context.MessageContext axis2MessageCtx)static voidpreservetransportHeaders(MessageContext synMsgCtx, Map originalTransportHeaders)static voidsetContentType(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)
-
-