public class HttpStoragePluginConfig extends AbstractSecuredStoragePluginConfig
Modifier and Type | Field and Description |
---|---|
boolean |
cacheResults |
Map<String,HttpApiConfig> |
connections |
static String |
NAME |
HttpOAuthConfig |
oAuthConfig |
String |
proxyHost |
int |
proxyPort |
String |
proxyType |
int |
timeout
Timeout in
TimeUnit.SECONDS . |
credentialsProvider, directCredentials
Constructor and Description |
---|
HttpStoragePluginConfig(Boolean cacheResults,
Map<String,HttpApiConfig> connections,
Integer timeout,
String proxyHost,
Integer proxyPort,
String proxyType,
String proxyUsername,
String proxyPassword,
HttpOAuthConfig oAuthConfig,
CredentialsProvider credentialsProvider) |
HttpStoragePluginConfig(HttpStoragePluginConfig that,
HttpOAuthConfig oAuthConfig)
Clone constructor used for updating OAuth tokens
|
Modifier and Type | Method and Description |
---|---|
boolean |
cacheResults() |
Map<String,HttpApiConfig> |
connections() |
HttpStoragePluginConfig |
copyForPlan(String connectionName)
Create a copy of the plugin config with only the indicated connection.
|
boolean |
equals(Object that) |
HttpApiConfig |
getConnection(String connectionName) |
static OAuthTokenCredentials |
getOAuthCredentials(CredentialsProvider credentialsProvider) |
UsernamePasswordCredentials |
getUsernamePasswordCredentials() |
int |
hashCode() |
HttpOAuthConfig |
oAuthConfig() |
String |
proxyHost() |
String |
proxyPassword() |
int |
proxyPort() |
String |
proxyType() |
String |
proxyUsername() |
int |
timeout() |
String |
toString() |
getCredentialsProvider
getValue, isEnabled, isEnabledStatusPresent, setEnabled
public static final String NAME
public final Map<String,HttpApiConfig> connections
public final boolean cacheResults
public final String proxyHost
public final int proxyPort
public final String proxyType
public final HttpOAuthConfig oAuthConfig
public final int timeout
TimeUnit.SECONDS
.public HttpStoragePluginConfig(Boolean cacheResults, Map<String,HttpApiConfig> connections, Integer timeout, String proxyHost, Integer proxyPort, String proxyType, String proxyUsername, String proxyPassword, HttpOAuthConfig oAuthConfig, CredentialsProvider credentialsProvider)
public HttpStoragePluginConfig(HttpStoragePluginConfig that, HttpOAuthConfig oAuthConfig)
that
- The current HTTP Plugin ConfigoAuthConfig
- The updated OAuth configpublic HttpStoragePluginConfig copyForPlan(String connectionName)
public boolean equals(Object that)
equals
in class StoragePluginConfig
public int hashCode()
hashCode
in class StoragePluginConfig
public boolean cacheResults()
public Map<String,HttpApiConfig> connections()
public int timeout()
public String proxyHost()
public int proxyPort()
public HttpOAuthConfig oAuthConfig()
public String proxyUsername()
public String proxyPassword()
public String proxyType()
public HttpApiConfig getConnection(String connectionName)
public UsernamePasswordCredentials getUsernamePasswordCredentials()
public static OAuthTokenCredentials getOAuthCredentials(CredentialsProvider credentialsProvider)
Copyright © 1970 The Apache Software Foundation. All rights reserved.