Class InstanceFactory

java.lang.Object
org.azd.abstractions.InstanceFactory

public final class InstanceFactory extends Object
Factory class to create an instance of request and response object.
  • Method Details

    • createSerializerContext

      public static SerializerContext createSerializerContext()
      Creates an instance of serializer context.
      Returns:
      SerializerContext SerializerContext.
    • createHttpClient

      public static HttpClient createHttpClient()
      Creates an instance of HttpClient.
      Returns:
      HttpClient HttpClient.
    • createHttpRequest

      public static HttpRequest createHttpRequest(AccessTokenCredential accessTokenCredential, RequestInformation requestInformation)
      Creates an instance of HttpRequest.
      Parameters:
      accessTokenCredential - Access token credential object.
      requestInformation - Request information object to set the request url, request body.
      Returns:
      HttpRequest object HttpRequest.
    • createResponseHandler

      public static ResponseHandler createResponseHandler(AccessTokenCredential accessTokenCredential, RequestInformation requestInformation)
      Creates an instance of response handler object.
      Parameters:
      accessTokenCredential - Access token credential object.
      requestInformation - Request information object to set the request url, request body.
      Returns:
      ResponseHandler ResponseHandler.