/** * Return the request uri with out the context path. * * * @param request - the http client request * * @return the request uri with out the context path */ public static String getStrippedURI(HttpServletRequest request) { return getStrippedURI(request, request.getRequestURI()); }
/** * Return the request uri with out the context path. * * * @param request - the http client request * * @return the request uri with out the context path */ public static String getStrippedURI(HttpServletRequest request) { return getStrippedURI(request, request.getRequestURI()); }
private boolean isRegularGitAPIRequest(HttpServletRequest request) { return REGEX_GITHTTPBACKEND.matcher(HttpUtil.getStrippedURI(request)).matches(); }
throws ServletException, IOException String strippedURI = HttpUtil.getStrippedURI(request); Matcher m = REGEX_URL.matcher(strippedURI);