public class SecureWasbRemoteCallHelper extends WasbRemoteCallHelper
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
LOG |
REMOTE_CALL_SUCCESS_CODE| Constructor and Description |
|---|
SecureWasbRemoteCallHelper(org.apache.hadoop.io.retry.RetryPolicy retryPolicy,
boolean alwaysRequiresKerberosAuth,
boolean isSpnegoTokenCachingEnabled) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.HttpUriRequest |
getHttpRequest(String[] urls,
String path,
List<org.apache.http.NameValuePair> queryParams,
int urlIndex,
String httpMethod,
boolean requiresNewAuth) |
String |
makeRemoteRequest(String[] urls,
String path,
List<org.apache.http.NameValuePair> queryParams,
String httpMethod)
Helper method to make remote HTTP Get request.
|
retryableRequest, updateHttpClientpublic SecureWasbRemoteCallHelper(org.apache.hadoop.io.retry.RetryPolicy retryPolicy,
boolean alwaysRequiresKerberosAuth,
boolean isSpnegoTokenCachingEnabled)
public String makeRemoteRequest(String[] urls, String path, List<org.apache.http.NameValuePair> queryParams, String httpMethod) throws IOException
WasbRemoteCallHelpermakeRemoteRequest in class WasbRemoteCallHelperurls - - Service urls to be used, if one fails try another.path - - URL endpoint for the resource.queryParams - - list of query parametershttpMethod - - http Method to be used.IOException - when there an error in executing the remote http request.public org.apache.http.client.methods.HttpUriRequest getHttpRequest(String[] urls, String path, List<org.apache.http.NameValuePair> queryParams, int urlIndex, String httpMethod, boolean requiresNewAuth) throws URISyntaxException, IOException
getHttpRequest in class WasbRemoteCallHelperURISyntaxExceptionIOExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.