| | |
| | |
|
| | | AccessRestrictionRequest accessRequest = new AccessRestrictionRequest(httpRequest);
|
| | |
|
| | | String url = httpRequest.getRequestURI().substring(httpRequest.getServletPath().length());
|
| | | String servletUrl = httpRequest.getContextPath() + httpRequest.getServletPath();
|
| | | String url = httpRequest.getRequestURI().substring(servletUrl.length());
|
| | | String params = httpRequest.getQueryString();
|
| | | if (url.length() > 0 && url.charAt(0) == '/') {
|
| | | url = url.substring(1);
|
| | | }
|
| | | String fullUrl = url + (StringUtils.isEmpty(params) ? "" : ("?" + params));
|
| | |
|
| | | String repository = extractRepositoryName(url);
|
| | | String repository = extractRepositoryName(fullUrl);
|
| | |
|
| | | // Determine if the request URL is restricted
|
| | | String fullSuffix = fullUrl.substring(repository.length());
|