Carbon StudioDownloadsDocumentation
SamplesGet InvolvedProject Information![]() |
Advanced Server ExtensionsContentESB Custom MediatorTo create an ESB Custom Mediator, right click on the CApp project and select ESB Mediator from the menu.There are two ways to create an ESB Custom Mediator Artifact.
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. With the second option, you can point a jar file which contains a mediator class from the file system.
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.
Now you will see a new ESB Custom Mediator Artifact has been created under Artifacts folder of the CApp project.
Data Service ValidatorTo create a Data Service Validator Artifact, right click on the CApp project and select Data Service Validator from the menu.
There are two ways to create an ESB Custom Mediator Artifact.
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.
With the second option, you can point a jar file which contains a data service validator class from the file system.
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.
Now you will see a new Data Service Validator Artifact has been created under Artifacts folder of the CApp project.
|