void delete()

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


    void delete(@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.delete(httpResponse, requestUrlWithQueryParams);
    }