HI Javier,

You can write a custom handler[1] for this. Within the handler, you can
access the current resource like this.

String resourceString = (String) synCtx.getProperty("API_ELECTED_RESOURCE");

You can access all transport headers like this.

Map headers = (Map) ((Axis2MessageContext) messageContext).
getAxis2MessageContext().
getProperty(org.apache.axis2.context.MessageContext.TRANSPORT_HEADERS);

Hope this helps.

[1] https://docs.wso2.com/display/AM210/Writing+Custom+Handlers

Thanks,
Bhathiya
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to