Obtain endpoint URL programatically inside wso2 custom handler

Viewed 145

I have a custom mediator which obtains the endpoint url from message context property ENDPOINT_PREFIX.

I am trying to do the same in my authentication handler, but the get property returns null.

Is there a different way to obtain this information inside a custom handler?

Note that I am not after the endpoint itself (e.g. /api/1.0.0) but after the url to which it points to (in the publisher ui it appears as production/sandbox url).

0 Answers
Related