Class HttpRequestFactory

java.lang.Object
org.azd.abstractions.HttpRequestFactory

public class HttpRequestFactory extends Object
Factory class to create a new instance of HttpRequest.
  • Method Details

    • create

      public static HttpRequest create(AccessTokenCredential accessTokenCredential, RequestInformation requestInformation)
      Creates an instance of HttpRequest object.
      Parameters:
      accessTokenCredential - Pass the access token credential object to set the access token.
      requestInformation - Request information to determine request url, request body.
      Returns:
      HttpRequest object HttpRequest.
    • newRequest

      public HttpRequest newRequest()
      Creates an instance of HttpRequest.
      Returns:
      HttpRequest object HttpRequest.