Transport Guide
Transformers
HttpRequestToMethodInvocation
| Full Qualified Name |
org.mule.providers.jira.transformers.HttpRequestToMethodInvocation |
| Source Types |
java.lang.String, javax.servlet.http.HttpServletRequest |
| Return Type |
org.mule.providers.jira.beans.MethodInvocation |
This transformer transforms an HTTP request to a MethodInvocation object. A MethodInvocation object is used by the JiraService to send request to a JIRA server.
JsonToObject
| Full Qualified Name |
org.mule.providers.jira.transformers.JsonToObject |
| Source Types |
java.lang.String, net.sf.json.JSONObject |
| Return Type |
java.lang.Object |
This transformer transforms an org.mule.providers.jira.beans.ObjectBean JSON (either in the form of text or JSONObject) to a Java object.
JSONToObject Example
The following JSON will be converted to a Java object of type RemoteIssue, with getSummary() returning the value "foo":
{
'type':'com.atlassian.jira.rpc.soap.beans.RemoteIssue',
'object':{
'summary':'foo'
}
}
JsonToXmlString
| Full Qualified Name |
org.mule.providers.jira.transformers.JsonToObject |
| Source Types |
java.lang.String, net.sf.json.JSONObject |
| Return Type |
java.lang.String |
This transformer transforms a JSON to an XML string. It uses the XML Serialization feature of JSON-lib. However, if input type is neither an array or object, e.g. boolean, string, and number, an <e type="${type}">${value}</e> element will be returned.
ObjectToJsonString
| Full Qualified Name |
org.mule.providers.jira.transformers.ObjectToJsonString |
| Source Types |
java.lang.Object |
| Return Type |
java.lang.String |
This transformer transforms an Object, e.g. Java Bean, Map, etc. to JSON (of type ObjectBean in string format. This can be very useful in converting the response to a request to JSON format.
ObjectToMethodInvocation
| Full Qualified Name |
org.mule.providers.jira.transformers.ObjectToMethodInvocation |
| Source Types |
java.lang.Object |
| Return Type |
org.mule.providers.jira.beans.MethodInvocation |
This transformer does something similar to the HttpRequestToMethodInvocation. It transforms an object (by reading its getters/setters and properties to a MethodInvocation object.