public class CallMediatorEnrichUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BODY |
static String |
CUSTOM |
static String |
ENVELOPE |
static String |
INLINE |
static String |
JSON_TYPE |
static org.apache.commons.logging.Log |
log |
static String |
PROPERTY |
static String |
TEXT_TYPE |
Constructor and Description |
---|
CallMediatorEnrichUtil() |
Modifier and Type | Method and 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) |
public static final String CUSTOM
public static final String PROPERTY
public static final String ENVELOPE
public static final String BODY
public static final String INLINE
public static final String JSON_TYPE
public static final String TEXT_TYPE
public static final org.apache.commons.logging.Log log
public static int convertTypeToInt(String type)
public static void doEnrich(MessageContext synCtx, Source source, Target target, String sourceContentType)
public static void enrichTextToBody(org.apache.axis2.context.MessageContext axis2MessageContext, String content)
public static com.google.gson.JsonElement getJsonElement(Object sourceProperty, com.google.gson.JsonParser jsonParser)
public static void preservetransportHeaders(MessageContext synMsgCtx, Map originalTransportHeaders)
public static void setContentType(MessageContext synCtx, String targetMessageType, String targetContentType)
public static void handleTransportHeaders(Object resultValue, org.apache.axis2.context.MessageContext axis2MessageCtx)
public static void buildMessage(MessageContext synCtx)
public static Source createSourceWithBody()
public static Target createTargetWithBody()
public static void handleException(String msg, Exception e, MessageContext msgContext)
public static void handleException(String msg, MessageContext msgContext)
public static SynapseLog getLog(MessageContext synCtx)
Copyright © 2005–2023 Apache Software Foundation. All rights reserved.