...
The POJOCommand (or Command) Mediator creates an instance of the specified command class, which may implement the org.apache.synapse.Command
interface or should have a public void method public void execute()
. If any properties are specified, the corresponding setter methods are invoked on the class before each message is executed. It should be noted that a new instance of the POJOCommand class is created to process each message. After execution of the POJOCommand Mediator, depending on the action
attribute of the property, the the new value returned by a call to the corresponding getter method is stored back to in the message or to in the context depending on the action
attribute of the property.
The action
attribute may specify whether this behavior is expected or not via the Read
, Update
and ReadAndUpdate
properties.
...
Parameter | Description |
---|---|
Property Name | The name of the property. This will be automatically loaded from the class. |
Read Info | The value to set for the property. You can select one of the following sources in the From field.
|
Update Info | |
Action |
Command Mediator configuration descriptions:
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
Update Info |
...
This parameter specifies the action to be executed on the property value. You can |
...
select one for the following actions |
...
in the To field.
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
Action |
...
Click Delete to delete |
...
a property. |
Info | ||
---|---|---|
| ||
You can configure the Mediator mediator using XML. Click on "switch to source view " in the "Mediator" window. |
Excerpt | ||
---|---|---|
| ||
Description of the POJOCommand Mediator in WSO2 ESB. |