...
The action
attribute may specify whether this behavior is expected or not via the Read
, Update
and ReadAndUpdate
properties.
...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Syntax
Code Block | ||||
---|---|---|---|---|
| ||||
<pojoCommand name="class-name">
(
<property name="string" value="string"/> |
<property name="string" context-name="literal" [action=(ReadContext | UpdateContext | ReadAndUpdateContext)]>
(either literal or XML child)
</property> |
<property name="string" expression="xpath" [action=(ReadMessage | UpdateMessage | ReadAndUpdateMessage)]/>
) *
</pojoCommand>
|
...
UI Configuration
You can specify the Command Mediator implementation class and load it by clicking on the "LoadClass" button. Once you load the POJOCommand class, you'll see the Command Mediator configuration options.
To load the POJOCommand class, enter the class name in the Class Name parameter and click Load Class. Then the mediator page will expand as shown below.
Parameters available to configure properties for the POJOCommand mediator are as follows.
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:
...
Info | ||
---|---|---|
| ||
You can configure the Mediator using XML. Click on "switch to source view" in the "Mediator" window. |
Excerpt | ||
---|---|---|
| ||
Description of the POJOCommand Mediator in WSO2 ESB. |