I want to validate that the request url match exactly the addressing header To.
is it possible to do that in a class Mediator? how can I get the endpoint url of the proxy service?
I want to validate that the request url match exactly the addressing header To.
is it possible to do that in a class Mediator? how can I get the endpoint url of the proxy service?
I am not sure whether you can do it with class mediator. But you can match the url with in the proxy service[1].
Also you can get the 'TO' value using message context property[2].
1.https://docs.wso2.com/display/ESB451/Sample+157%3A+Conditional+Router+for+Routing+Messages+based+on+HTTP+URL,+HTTP+Headers+and+Query+Parameters 2.https://docs.wso2.com/display/ESB460/Synapse+Message+Context+Properties#SynapseMessageContextProperties-Property:MESSAGE_FORMAT