Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The action attribute may specify whether this behavior is expected or not via the Read, Update and ReadAndUpdate properties.

...

Table of Contents
maxLevel3
minLevel3
styleborder:1
locationtop
typeflat
separatorpipe

...

Syntax

Code Block
XML
XML

<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.

Image RemovedTo 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.

Image Added

Parameters available to configure properties for the POJOCommand mediator are as follows.

ParameterDescription
Property NameThe 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
titleNote

You can configure the Mediator using XML. Click on "switch to source view" in the "Mediator" window.

Excerpt
hiddentrue

Description of the POJOCommand Mediator in WSO2 ESB.