title: Java get referer URI?
body: <p>I want the exact same method as <a href="http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getRequestURI%28%29" rel="noreferrer">getRequestURI()</a>, but I want to use it on the referer. Is this possible?</p>
  
  <p>I would like to turn <code>http://www.example.com/my/path?vars=true</code> into <code>/my/path</code></p>