public class BallerinaMessageDataSource extends Object implements MessageDataSource
| Constructor and Description |
|---|
BallerinaMessageDataSource() |
| Modifier and Type | Method and Description |
|---|---|
BallerinaMessageDataSource |
clone() |
String |
getContentType()
Reruns the content-type of the data.
|
Object |
getDataObject()
Returns the data-object of the data source.
|
String |
getMessageAsString()
Returns the entire message as string.
|
Object |
getValue(String path)
Returns the value.
|
String |
getValueAsString(String path)
Returns the string value of the given path.
|
String |
getValueAsString(String path,
Map<String,String> properties)
Returns the string value of the path.
|
void |
serializeData(OutputStream outputStream)
Serialize data in to a byte stream.
|
void |
setContentType(String type)
Set the content type of the data.
|
public String getValueAsString(String path)
MessageDataSourcegetValueAsString in interface MessageDataSourcepath - value pathpublic String getValueAsString(String path, Map<String,String> properties)
MessageDataSourcegetValueAsString in interface MessageDataSourcepath - value pathproperties - meta infopublic Object getValue(String path)
MessageDataSourcegetValue in interface MessageDataSourcepath - value pathpublic Object getDataObject()
MessageDataSourcegetDataObject in interface MessageDataSourcepublic String getContentType()
MessageDataSourcegetContentType in interface MessageDataSourcepublic void setContentType(String type)
MessageDataSourcesetContentType in interface MessageDataSourcetype - content-typepublic void serializeData(OutputStream outputStream)
MessageDataSourceserializeData in interface MessageDataSourcepublic String getMessageAsString()
MessageDataSourcegetMessageAsString in interface MessageDataSourcepublic BallerinaMessageDataSource clone()
Copyright © 2018 WSO2. All rights reserved.