Access Keys:
Skip to content (Access Key - 0)
community header community tab mule tab ibeans tab muleforge tab

Transport Guide

Transport Configurations | Transformers | Service Components | [Questions and Answers]

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.

Adaptavist Theme Builder (3.3.3-conf210) Powered by Atlassian Confluence 2.10, the Enterprise Wiki.
Free theme builder license