As an example, take subdomain mapping.
This article: Managing multiple Domain and Sub Domain on Google App Engine for Same Applicat
That's correct, but that would be too complicated. You'd better check the Host
header, whether it contains a given subdomain.
But you should not really need this more than once or twice, so you can also do it manually in the method body. If you really need it in many places, it would be an odd requirement.