private String extractActualRequestPathPath()

in content/30_containerize-app/app/src/main/java/com/atlassian/jira/jsw/sample/dataprovider/ProxyController.java [94:103]


    private String extractActualRequestPathPath(final HttpServletRequest httpRequest) {
        final String contextPath = httpRequest.getServletPath();

        final Matcher pathMatcher = regexUrlPathPattern.matcher(contextPath);
        final boolean pathParseResult = pathMatcher.find();
        if (!pathParseResult) {
            throw new RuntimeException("Internal Server Error. Can't parse URL path");
        }
        return "/" + pathMatcher.group(1);
    }