tds/src/main/java/thredds/servlet/ServletUtil.java
public static URI getRequestURI(HttpServletRequest req) {
    try {
      return new URI(getRequestBase(req));
    } catch (URISyntaxException e) {
      e.printStackTrace();
      return null;
    }
  }
public static URI getRequestURI(HttpServletRequest req) {
    try {
      return new URI(getRequestBase(req));
    } catch (URISyntaxException e) {
      e.printStackTrace();
      return null;
    }
  }
public static URI getRequestURI ( HttpServletRequest req ) { try { return new URI ( getRequestBase ( req ) ) ; } catch ( URISyntaxException e ) { e . printStackTrace ( ) ; return null ; } }
The request base as a URI

@param req the HttpServletRequest
@return parsed request as a URI
The request base as a URI