Reputation: 35276
I can get a static resource like this with AppEngine:
InputStream is =
getServletContext().getResourceAsStream("/WEB-INF/config/Reports.xml");
However, I need to get this static resource URI
and pass it on to a Java class which is not a Servlet.
What is the strategy to pass URI if this is the case?
Upvotes: 0
Views: 65
Reputation: 168815
URI uri =
getServletContext().getResource("/WEB-INF/config/Reports.xml").toURI();
Upvotes: 1