com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

POJOCommand Mediator

Note

Please note that this feature is deprecated.

Tip

This mediator implements the popular command pattern.

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, the new value returned by a call to the corresponding getter method is stored back in the message or 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.



Syntax

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

Configuration

To load the POJOCommand class, enter the class name in the Class Name parameter and click Load Class. 

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.

  • Value: Select this if you want the property value to be a static value. This static value should be entered in the Value field.
  • Message: Select this if you want to read the property value from an incoming message. The XPath expression to execute on the relevant message should be entered in the Value field.
  • Context: Select this if you want to read a value from message context properties. The relevant property key should be entered in the Value field.
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.

  • None: Select this if no activity should be performed on the property value.
  • Message: Select this if you want to update the message. The XPath expression of the element you want to update should be entered in the Value field.
  • Context: Select this if you want to update properties (message context). The relevant property key should be entered in the Value field.
ActionClick Delete to delete a property.
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.