Мне нужно получить URL-адрес используемых ресурсов в моем веб-приложении vaadin 7, в моем случае ресурс представляет собой изображение, которое может быть расположено в папке VAADIN/themes/themename/img
или может быть основано в файле jar.
Итак, метод, который я хочу написать, имеет эту подпись:
/**
* Returns the URL for an image described with its name
*/
public String getURL(String image) {
...
}