I am using WSO2 AM 2.6, with two domains pointing to the GW host:
- domain1.com
- domain2.com
Is there a way to figure out, inside a mediator or a custom handler, if the API was invoked using domain1.com or domain2.com? Either a property or function that will return the following:
- Calling https://domain1.com:8243/endpoint/1.0.0 --> domain1.com
- Calling https://domain2.com:8243/endpoint/1.0.0 --> domain2.com
Looking at synapse properties, I see there are properties such as REST_API_CONTEXT and REST_API_ENDPOINT_PATH, but all return /endpoint/1.0.0 and not the complete URL, including the "domainX.com" part.