I want to write java program to read set of data from YAML file in cloud foundry.
#Define CDN domains
---
domains:
name : CDN1
quality : 200..300
cost : low
location: http://
name: CDN2
quality: 400..500
cost: high
location: http://
Then, in the program based on the name and quality it should redirect the first request to new location. Can anyone help me for this? I`m entirely new in YAML! Based on my search, I can use snacked YAML or bean YAML, but I don't know what difference is.