title: URL Mapping in Java AppEngine (for Python-like functionality)
body: <p>First Post.</p>
  
  <p>I'm a mobile game developer looking into using the Java version of AppEngine for the backend of an Andriod game. Since the game is written in Java, I figured that I'd use the Java version of AppEngine. I've some experience with the Python version of AppEngine, and am finding some difficulty in my migration to the Java version of AppEngine, specifically in relation to URL mapping.</p>
  
  <p>In Python, this is what I was used to:</p>
  
  <pre><code>def main():
  application = webapp.WSGIApplication(
  [('/', Main),
      ('/admin', Admin),
      ('/setScore', SetScore), 
      ('/getScores', SetScores),
      ('/getUser', GetUser),
      ('/getCatelog', GetCatelog)
  ])
  
  webapp.util.run_wsgi_app(application)
  </code></pre>
  
  <p>The WSGI application would map different URLs to the different request handlers. My question is whether there is equivalent functionality in Java or if a similar approach is even considered best practices in the Java incarnation of AppEngine. </p>
  
  <p>Does Java have an alternate way to achieve this functionality, or is there some alternate paradigm for how Java Servlets handle this sort of thing?</p>
  
  <p>I am aware that the web.xml file gives you the opportunity to map urls to servelets, but I'm not sure if that's the proper way. </p>
  
  <p>What's the standard way that one might map URLs in the Java version of AppEngine to have different functionality triggered by different URLs?</p>
  
  <p>Thanks.</p>