Package org.azd.abstractions
Class HttpRequestFactory
java.lang.Object
org.azd.abstractions.HttpRequestFactory
Factory class to create a new instance of HttpRequest.
-
Method Summary
Modifier and TypeMethodDescriptionstatic HttpRequest
create
(AccessTokenCredential accessTokenCredential, RequestInformation requestInformation) Creates an instance of HttpRequest object.Creates an 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
Creates an instance of HttpRequest.- Returns:
- HttpRequest object
HttpRequest
.
-