quarks
quarks

Reputation: 35276

How to get static URI with AppEngine

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

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168815

URI uri = 
    getServletContext().getResource("/WEB-INF/config/Reports.xml").toURI();

Upvotes: 1

Related Questions