Package org.azd.abstractions
Class RequestInformation
java.lang.Object
org.azd.abstractions.RequestInformation
Internal class to construct the request parameters to call Azure DevOps API.
-
Field Summary
Modifier and TypeFieldDescriptionPass theAccessTokenCredential
for authentication.This is mandatory.Area represents the Azure DevOps service such as work item tracking, Git, etc.Required to construct the client request to call the API.Represents the request body.The unique location id to identify the details of the API.Path parameters of the URL.(Optional) Pass the project name.Request body.Represents the request headers to be passed with the request.Represents the Http Request method. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the fully constructed request URL.void
setBaseInstance
(String baseInstance) Sets the base url.void
setQueryParameter
(String name, Object value) Sets the query parameters.void
setQueryParameters
(Object parameters) Sets the query parameters.void
setQueryParameters
(Map<String, Object> queryParameters) Sets the query parameters from given map.void
setRequestUrl
(String requestUrl) Sets the request URL.
-
Field Details
-
requestMethod
Represents the Http Request method.RequestMethod
-
accessTokenCredential
Pass theAccessTokenCredential
for authentication. -
project
(Optional) Pass the project name. -
area
Area represents the Azure DevOps service such as work item tracking, Git, etc. -
locationId
The unique location id to identify the details of the API. -
pathParameters
Path parameters of the URL. -
apiVersion
This is mandatory. Respective API version. -
requestHeaders
Represents the request headers to be passed with the request. -
requestBody
Request body. -
inputStream
Represents the request body. -
body
Required to construct the client request to call the API.
-
-
Constructor Details
-
RequestInformation
public RequestInformation()Default.
-
-
Method Details
-
setBaseInstance
Sets the base url.- Parameters:
baseInstance
- Pass the base instance. e.g., dev.azure.com.
-
setQueryParameters
Sets the query parameters.- Parameters:
parameters
- Query parameters.
-
setQueryParameter
Sets the query parameters.- Parameters:
name
- Name or key of the parameter.value
- Value for the Name or key.
-
setQueryParameters
Sets the query parameters from given map.- Parameters:
queryParameters
- Map of query parameters.
-
getRequestUri
Returns the fully constructed request URL.- Returns:
- Request URI.
URI
-
setRequestUrl
Sets the request URL.- Parameters:
requestUrl
- Request url string to set.
-