Advanced Server Extensions

Content

ESB Custom Mediator

To create an ESB Custom Mediator, right click on the CApp project and select ESB Mediator from the menu.



New Server Runtime



There are two ways to create an ESB Custom Mediator Artifact.
  1. From Workspace
  2. From File System
If you select From Workspace option, it will list all the projects that include a mediator class which is created by extending org.apache.synapse.mediators.AbstractMediator class, if there is any.



New Server Runtime



If you do not have any projects with Mediator class, you can create a new class extending org.apache.synapse.mediators.AbstractMediator base class by clicking on New button of the From Workspace option. Give the necessary information and it will create a class, extending the base class.





New Server Runtime



With the second option, you can point a jar file which contains a mediator class from the file system.





New Server Runtime



Select the CApp project you want to create ESB Custom Mediator Artifact and and give a name to the ESB Custom Mediator artifact. Then click Finish.





New Server Runtime



Now you will see a new ESB Custom Mediator Artifact has been created under Artifacts folder of the CApp project.





New Server Runtime



Registry Filter

To create a Registry Filter Artifact, right click on the CApp project and select Registry Filter from the menu.





New Server Runtime



There are two ways to create an Registry Filter Artifact.

  1. From Workspace
  2. From File System
If you select From Workspace option, it will list all the projects that include a Filter class which is created by extending org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter class, if there is any.



New Server Runtime



If you do not have any projects with Filter class, you can create a new class extending org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter base class by clicking on New button of the From Workspace option. Give the necessary information and it will create a class, extending the base class.





New Server Runtime



With the second option, you can point a jar file which contains a filter class from the file system.





New Server Runtime



Select the CApp project you want to create Registry Filter Artifact and and give a name to the Registry Filter Artifact. Then click Finish.





New Server Runtime



Now you will see a new Registry Filter Artifact has been created under Artifacts folder of the CApp project.

Registry Handler

To create a Registry Handler Artifact, right click on the CApp project and select Registry Handler from the menu.





New Server Runtime



To create a Registry Handler Artifact, you need to have two types of classes. Handler class which is exteneded by org.wso2.carbon.registry.core.jdbc.handlers.Handler and a Filter class which is extended by org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter.

First wizard page is regarding information of Handler class. If you have a class extending org.wso2.carbon.registry.core.jdbc.handlers.Handler in the workspce, information regarding that class and project will be filled for you.





New Server Runtime



You can create a new Handler class by clicking on New option as well.





New Server Runtime



You can select Handler Properties and Hanlder methods and click Next.





New Server Runtime



In the next wizard page, you have to give the information regarding Filter class. If you have Filter class already in the workspace, those information will be filled in the drop-down box.





New Server Runtime



As you did for Handlers, you can create a new Filter class by clicking New option.

Define filter criteria and click Next.

Select the CApp project you want to create Registry Handler Artifact and and give a name to the Registry Handler Artifact. Then click Finish.





New Server Runtime



Now you will see a new Registry Handler Artifact has been created under Artifacts folder of the CApp project.





New Server Runtime



Data Service Validator

To create a Data Service Validator Artifact, right click on the CApp project and select Data Service Validator from the menu.





New Server Runtime



There are two ways to create an ESB Custom Mediator Artifact.

  1. From Workspace
  2. From File System
If you select From Workspace option, it will list all the projects that include a validator class which is created by implementing org.wso2.carbon.dataservices.validation.Validator interface, if there is any.



New Server Runtime



If you do not have any projects with Validator class, you can create a new class implementing org.wso2.carbon.dataservices.validation.Validator interface by clicking on New button of the From Workspace option. Give the necessary information and it will create a class, implementing the interface.





New Server Runtime



With the second option, you can point a jar file which contains a data service validator class from the file system.





New Server Runtime



Select the CApp project you want to create Data Service Validator Artifact and and give a name to the Data Service Validator artifact. Then click Finish.





New Server Runtime



Now you will see a new Data Service Validator Artifact has been created under Artifacts folder of the CApp project.





New Server Runtime