获取POST请求的base url

@param requestHolder
@return
@throws AlipayApiException
168873
private String getRequestUrl(RequestParametersHolder requestHolder) throws AlipayApiException {
        StringBuffer urlSb = new StringBuffer(serverUrl);
        try {
            String sysMustQuery = WebUtils.buildQuery(requestHolder.getProtocalMustParams(),
                charset);
            String sysOptQuery = WebUtils.buildQuery(requestHolder.getProtocalOptParams(), charset);

            urlSb.append("?");
            urlSb.append(sysMustQuery);
            if (sysOptQuery != null & sysOptQuery.length() > 0) {
                urlSb.append("&");
                urlSb.append(sysOptQuery);
            }
        } catch (IOException e) {
            throw new AlipayApiException(e);
        }

        return urlSb.toString();
    }
848500
public ApiResponse<Object> retrievePCTokenUsingPOSTWithHttpInfo() throws ApiException {
        com.squareup.okhttp.Call call = retrievePCTokenUsingPOSTValidateBeforeCall(null, null);
        Type localVarReturnType = new TypeToken<Object>(){}.getType();
        return apiClient.execute(call, localVarReturnType);
    }
820014
public function makeSignPlainText($requestParams, $requestMethod = 'POST', $requestHost = '', $requestPath = '/v2/index.php')
    {
        $url = $requestHost . $requestPath;
        // 取出所有的参数
        $paramStr = $this->_buildParamStr($requestParams, $requestMethod);
        $plainText = $requestMethod . $url . $paramStr;
        return $plainText;
    }
7990
public String requestPost(final String id) throws SDKException {
    CloseableHttpResponse response = null;
    HttpPost httpPost = null;
    checkToken();

    try {
      log.debug("pathUrl: " + pathUrl);
      log.debug("id: " + pathUrl + "/" + id);

      // call the api here
      log.debug("Executing post on: " + this.pathUrl + "/" + id);
      httpPost = new HttpPost(this.pathUrl + "/" + id);
      preparePostHeader(httpPost, "application/json", "application/json");

      response = httpClient.execute(httpPost);

      // check response status
      RestUtils.checkStatus(response, HttpURLConnection.HTTP_CREATED);
      // return the response of the request
      String result = "";
      if (response.getEntity() != null) {
        result = EntityUtils.toString(response.getEntity());
      }
      closeResponseObject(response);
      log.trace("received: " + result);

      httpPost.releaseConnection();
      return result;
    } catch (IOException e) {
      // catch request exceptions here
      log.error(e.getMessage(), e);
      if (httpPost != null) {
        httpPost.releaseConnection();
      }
      throw new SDKException(
          "Could not http-post or open the object properly",
          e.getStackTrace(),
          "Could not http-post or open the object properly because: " + e.getMessage());
    } catch (SDKException e) {
      if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
        token = null;
        if (httpPost != null) {
          httpPost.releaseConnection();
        }
        return requestPost(id);
      } else {
        if (httpPost != null) {
          httpPost.releaseConnection();
        }
        try {
          throw new SDKException(
              "Status is " + response.getStatusLine().getStatusCode(),
              new StackTraceElement[0],
              EntityUtils.toString(response.getEntity()));
        } catch (IOException e1) {
          e1.printStackTrace();
          throw new SDKException(
              "Status is " + response.getStatusLine().getStatusCode(),
              new StackTraceElement[0],
              "could not provide reason because: " + e.getMessage());
        }
      }
    }
  }
1034107
@PostMapping(path = SamlProtocolConstants.ENDPOINT_SAML_VALIDATE)
    @Override
    public ModelAndView handleRequestInternal(final HttpServletRequest request,
                                              final HttpServletResponse response) throws Exception {
        return super.handleRequestInternal(request, response);
    }
727503
public static AlipayTradeAppPayResponse appPayToResponse(AlipayTradeAppPayModel model, String notifyUrl)
			throws AlipayApiException {
		// 实例化具体API对应的request类,类名称和接口名称对应,当前调用接口名称：alipay.trade.app.pay
		AlipayTradeAppPayRequest request = new AlipayTradeAppPayRequest();
		// SDK已经封装掉了公共参数，这里只需要传入业务参数。以下方法为sdk的model入参方式(model和biz_content同时存在的情况下取biz_content)。
		request.setBizModel(model);
		request.setNotifyUrl(notifyUrl);
		// 这里和普通的接口调用不同，使用的是sdkExecute
		AlipayTradeAppPayResponse response = AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient()
				.sdkExecute(request);
		return response;
	}
167717
public static void wapPay(HttpServletResponse response, AlipayTradeWapPayModel model, String returnUrl,
			String notifyUrl) throws AlipayApiException, IOException {
		String form = wapPayStr(response, model, returnUrl, notifyUrl);
		HttpServletResponse httpResponse = response;
		httpResponse.setContentType("text/html;charset=" + AliPayApiConfigKit.getAliPayApiConfig().getCharset());
		httpResponse.getWriter().write(form);// 直接将完整的表单html输出到页面
		httpResponse.getWriter().flush();
	}
857378
public static void putInitialHttpRequestPostParameters(final RequestContext context) {
        val request = getHttpServletRequestFromExternalWebflowContext(context);
        context.getFlashScope().put("httpRequestInitialPostParameters", request.getParameterMap());
    }
440131
public static AlipayTradePrecreateResponse tradePrecreatePayToResponse(AlipayTradePrecreateModel model,
			String notifyUrl) throws AlipayApiException {
		AlipayTradePrecreateRequest request = new AlipayTradePrecreateRequest();
		request.setBizModel(model);
		request.setNotifyUrl(notifyUrl);
		return AliPayApiConfigKit.getAliPayApiConfig().getAlipayClient().execute(request);
	}
838720
public <T> HttpClientRequest.Builder<T> post(final URI uri, final HttpClientResponseHandler<T> httpHandler)
    {
        return new HttpClientRequest.Builder<T>(httpClientFactory, HttpClientMethod.POST, uri, httpHandler);
    }
631508
public static Route POST(String uriPattern, RouteHandler routeHandler) {
        return new Route(HttpConstants.Method.POST, uriPattern, routeHandler);
    }
915638
@Override
    protected final void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        if (!support.isLegal(request)) {
            return;
        }
        //设置响应编码格式
        response.setCharacterEncoding("UTF-8");
        String resp = support.processRequest(request);
        PrintWriter pw = response.getWriter();
        pw.write(resp);
        pw.flush();
        pw.close();
    }
1059874
public function post(Provider $provider, $userId, $requestScope, $requestUri, array $postBody, array $requestHeaders = [])
    {
        return $this->send($provider, $userId, $requestScope, Request::post($requestUri, $postBody, $requestHeaders));
    }
962792
public function post($resourceUrl, array $requestOptions = [], $returnData = false)
    {
        $postString = $this->request->createQuery($requestOptions);

        // When executing POST request we need a csrf-token.
        $this->initTokenIfRequired();

        $this->execute($resourceUrl, $postString);

        return $returnData ? $this->response->getResponseData() : $this->response->isOk();
    }
848477
public String postRequest(final URL url, final String jsonBody) throws MovieDbException {
        try {
            HttpPost httpPost = new HttpPost(url.toURI());
            httpPost.addHeader(HTTP.CONTENT_TYPE, APPLICATION_JSON);
            httpPost.addHeader(HttpHeaders.ACCEPT, APPLICATION_JSON);
            StringEntity params = new StringEntity(jsonBody, ContentType.APPLICATION_JSON);
            httpPost.setEntity(params);

            return validateResponse(DigestedResponseReader.postContent(httpClient, httpPost, CHARSET), url);
        } catch (URISyntaxException | IOException ex) {
            throw new MovieDbException(ApiExceptionType.CONNECTION_ERROR, null, url, ex);
        }
    }
1289213
public function post($requestPath, array $postData)
    {
        $requestUri = sprintf('%s/%s', $this->baseUri, $requestPath);

        return $this->responseHandler(
            'POST',
            $requestPath,
            $this->httpClient->post($requestUri, $postData)
        );
    }
664946
public static String buildCanvasUrl(String canvasBaseUrl, int canvasAPIVersion, String canvasMethod, Map<String, List<String>> parameters) {
        canvasMethod = removeForwardSlashIfExists(canvasMethod);
        String url = canvasBaseUrl + "/api/v" +  canvasAPIVersion + "/" + canvasMethod;
        String finalUrl = url + HttpParameterBuilder.buildParameters(parameters);
        LOG.debug("Built Canvas url - " + finalUrl);
        return finalUrl;
    }