Forum Discussion
Hflower
13 years agoOccasional Contributor
To access a project property in a RequestFilter event Handler, you do it like this
I haven't figured out how to get a Global though
these end up with Groovy syntax errors because of the # or =
accessKey = request.operation.interface.project.getPropertyValue("accessKey")
log.info "my request key is ${accessKey}"
I haven't figured out how to get a Global though
accessKey = #Global#AccessKey
accessKey = ${#Global#AccessKey}
accessKey = ${AccessKey}
log.info "my global key is ${=AccessKey}"
these end up with Groovy syntax errors because of the # or =