I'm making a simple, very lightweight front-controller. I need to match request paths to different handlers (actions) in order to choose the correct one.

On my local machine [`HttpServletRequest.getPathInfo()`](http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html#getPathInfo()) and [`HttpServletRequest.getRequestURI()`](http://download.oracle.com/javaee/5/api/javax/servlet/http/HttpServletRequest.html#getRequestURI()) return the same results. But I'm not sure what will they return in the production environment.

So, what's the difference between these method and what should I choose?