title: programmatically get base url from inside google app engine endpoint method
body: <p>I am creating a Google Appengine endpoint api. In one of the endpoint methods, I need to detect the base url. How might I do that in Java?</p>