code: public String getContextUrl(HttpServletRequest request) {
          StringBuffer url = request.getRequestURL();
          String context = request.getContextPath();
          String contextUrl = url.substring(0, url.indexOf(context)
                  + context.length());
          return contextUrl;
      }
docs: Return the full URL of the context.
  
  eg. http://localhost:8080/exclusions-oracle-0.0.1-SNAPSHOT
  
  @param request
  @return