Class Output
- java.lang.Object
-
- org.wso2.carbon.mediator.transform.Output
-
public class Output extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_ADD_CHILD
static String
ACTION_ADD_SIBLING
static String
ACTION_REPLACE
static String
AXIOMPAYLOADNS
static QName
TEXTELT
-
Constructor Summary
Constructors Constructor Description Output()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
byteArrayIStoString(ByteArrayInputStream is)
String
getAction()
org.apache.synapse.util.xpath.SynapseXPath
getExpression()
static org.apache.axiom.soap.SOAPEnvelope
getNewSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope envelope)
New SOAPEnvelope is created with namespace & header elements of envelopeString
getProperty()
SmooksMediator.TYPES
getType()
void
process(ByteArrayOutputStream outputStream, org.apache.synapse.MessageContext synCtx, org.apache.synapse.SynapseLog synLog, org.milyn.payload.JavaResult result)
void
setAction(String action)
void
setExpression(org.apache.synapse.util.xpath.SynapseXPath expression)
void
setProperty(String property)
static void
setTextPayload(org.apache.synapse.MessageContext synCtx, String text)
void
setType(SmooksMediator.TYPES type)
static void
setXMLPayload(org.apache.synapse.MessageContext synCtx, org.apache.axiom.om.OMElement element)
-
-
-
Field Detail
-
ACTION_REPLACE
public static final String ACTION_REPLACE
- See Also:
- Constant Field Values
-
ACTION_ADD_CHILD
public static final String ACTION_ADD_CHILD
- See Also:
- Constant Field Values
-
ACTION_ADD_SIBLING
public static final String ACTION_ADD_SIBLING
- See Also:
- Constant Field Values
-
AXIOMPAYLOADNS
public static final String AXIOMPAYLOADNS
- See Also:
- Constant Field Values
-
TEXTELT
public static final QName TEXTELT
-
-
Method Detail
-
process
public void process(ByteArrayOutputStream outputStream, org.apache.synapse.MessageContext synCtx, org.apache.synapse.SynapseLog synLog, org.milyn.payload.JavaResult result) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
byteArrayIStoString
public String byteArrayIStoString(ByteArrayInputStream is)
-
getType
public SmooksMediator.TYPES getType()
-
getExpression
public org.apache.synapse.util.xpath.SynapseXPath getExpression()
-
getProperty
public String getProperty()
-
getAction
public String getAction()
-
setType
public void setType(SmooksMediator.TYPES type)
-
setExpression
public void setExpression(org.apache.synapse.util.xpath.SynapseXPath expression)
-
setProperty
public void setProperty(String property)
-
setAction
public void setAction(String action)
-
setXMLPayload
public static void setXMLPayload(org.apache.synapse.MessageContext synCtx, org.apache.axiom.om.OMElement element) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
setTextPayload
public static void setTextPayload(org.apache.synapse.MessageContext synCtx, String text) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
getNewSOAPEnvelope
public static org.apache.axiom.soap.SOAPEnvelope getNewSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope envelope)
New SOAPEnvelope is created with namespace & header elements of envelope- Parameters:
envelope
- Envelope from MessageContext- Returns:
- New SOAPEnvelope
-
-