void get()

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


    void get(@RequestParam String hostBaseUrl,
             HttpServletRequest httpRequest,
             HttpServletResponse httpResponse) throws IOException {

        final String proxyPath = extractActualRequestPathPath(httpRequest);
        if (!whitelistService.isAllowed(proxyPath)) {
            httpResponse.sendError(403, "Forbidden");
            return;
        }

        final String requestUrlWithQueryParams = buildUrlWithQueryParams(hostBaseUrl, httpRequest, proxyPath);
        httpCommonOperations.get(httpResponse, requestUrlWithQueryParams);
    }