Package org.azd.utils
Class Client
java.lang.Object
org.azd.utils.BaseClient
org.azd.utils.Client
Deprecated.
This is deprecated as of version 5.0.0
Wrapper class to build request url and to call Azure DevOps REST API
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.utils.BaseClient
BaseClient.StreamBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetLocationUrl(String resourceID, String organizationName) Deprecated.static InputStreamsend(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, HashMap<String, Object> queryString, String contentType, InputStream contentStream, Map<String, String> customHeaders, boolean redirect) Deprecated.static Stringsend(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map<String, Object> queryString, Map<String, Object> body) Deprecated.static Stringsend(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map<String, Object> queryString, Map<String, Object> body, String contentType) Deprecated.static Stringsend(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map<String, Object> queryString, Map<String, Object> body, List<Object> requestBody, String contentType) Deprecated.static Stringsend(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map queryString, boolean contentType, String body) Deprecated.
-
Constructor Details
-
Client
public Client()Deprecated.
-
-
Method Details
-
send
@Deprecated public static String send(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map queryString, boolean contentType, String body) throws AzDException Deprecated.Request the Azure DevOps REST API and builds the request url dynamically based on resource id and endpoints passed.- Parameters:
requestMethod- type of request GET, POST, PATCH, DELETERequestMethodconnection- name of the organizationresourceId- pass the resource id.project- name of the projectarea- resource areaid- resource idresource- resource area endpointapiVersion- api versionqueryString- query string to append the urlcontentType- true to return the request urlbody- body of the request to post and patch- Returns:
- String response from API
- Throws:
AzDException- throws user understandable error message with error code from API
-
send
@Deprecated public static InputStream send(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, HashMap<String, Object> queryString, String contentType, InputStream contentStream, Map<String, throws AzDExceptionString> customHeaders, boolean redirect) Deprecated.Request the Azure DevOps REST API and builds the request url dynamically based on resource id and endpoints passed- Parameters:
requestMethod- type of request GET, POST, PATCH, DELETERequestMethodconnection- name of the organizationresourceId- pass the resource id.project- name of the projectarea- resource areaid- resource idresource- resource area endpointapiVersion- api versionqueryString- query string to append the urlcontentType- true to return the request urlcontentStream- API payload as streamcustomHeaders- Custom headers if anyredirect- if true looks for redirect URI from HttpResponse- Returns:
- InputStream from API
- Throws:
AzDException- Default Api exception handler
-
send
@Deprecated public static String send(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map<String, Object> queryString, Map<String, throws AzDExceptionObject> body) Deprecated.Request the Azure DevOps REST API and builds the request url dynamically based on resource id and endpoints passed- Parameters:
requestMethod- type of request GET, POST, PATCH, DELETERequestMethodconnection- connection objectresourceId- pass the resource id.project- name of the projectarea- resource areaid- resource idresource- resource area endpointapiVersion- api versionqueryString- query string to append the urlbody- body of the request to post and patch- Returns:
- String response from API
- Throws:
AzDException- throws user understandable error message with error code from API
-
send
@Deprecated public static String send(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map<String, Object> queryString, Map<String, throws AzDExceptionObject> body, String contentType) Deprecated.Request the Azure DevOps REST API and builds the request url dynamically based on resource id and endpoints passed- Parameters:
requestMethod- type of request GET, POST, PATCH, DELETERequestMethodconnection- connection objectresourceId- pass the resource id.project- name of the projectarea- resource areaid- resource idresource- resource area endpointapiVersion- api versionqueryString- query string to append the urlbody- body of the request to post and patchcontentType- content type to pass in the request header- Returns:
- String response from API
- Throws:
AzDException- throws user understandable error message with error code from API
-
send
@Deprecated public static String send(RequestMethod requestMethod, Connection connection, String resourceId, String project, String area, String id, String resource, String apiVersion, Map<String, Object> queryString, Map<String, throws AzDExceptionObject> body, List<Object> requestBody, String contentType) Deprecated.Request the Azure DevOps REST API and builds the request url dynamically based on resource id and endpoints passed- Parameters:
requestMethod- type of request GET, POST, PATCH, DELETERequestMethodconnection- connection objectresourceId- pass the resource id.project- name of the projectarea- resource areaid- resource idresource- resource area endpointapiVersion- api versionqueryString- query string to append the urlbody- body of the request to post and patchrequestBody- body of the request to post and patch. This should be a list of HashMapcontentType- content type to pass in the request header- Returns:
- String response from API
- Throws:
AzDException- throws user understandable error message with error code from API
-
getLocationUrl
@Deprecated public static String getLocationUrl(String resourceID, String organizationName) throws AzDException Deprecated.Gets the resource area url based on resource id passed for the organization- Parameters:
resourceID- pass the resource idorganizationName- pass the organization name- Returns:
- resource area url
- Throws:
AzDException- throws user understandable error message with error code from API
-