HttpRequestUtils Class

  • java.lang.Object
    • com.microsoft.bot.ai.qna.utils.HttpRequestUtils

public class HttpRequestUtils

Helper for HTTP requests.

Constructor Summary

Constructor Description
HttpRequestUtils()

Method Summary

Modifier and Type Method and Description
java.util.concurrent.CompletableFuture<com.fasterxml.jackson.databind.JsonNode> executeHttpRequest(String requestUrl, String payloadBody, QnAMakerEndpoint endpoint)

Execute Http request.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

HttpRequestUtils

public HttpRequestUtils()

Method Details

executeHttpRequest

public CompletableFuture executeHttpRequest(String requestUrl, String payloadBody, QnAMakerEndpoint endpoint)

Execute Http request.

Parameters:

requestUrl - Http request url.
payloadBody - Http request body.
endpoint - QnA Maker endpoint details.

Returns:

Returns http response object.

Applies to