public class RestConnection<C extends BrowseContext> extends BaseConnection<C>
Modifier and Type | Field and Description |
---|---|
static Long |
DEFAULT_CONNECT_TIMEOUT |
static Long |
DEFAULT_READ_TIMEOUT |
Constructor and Description |
---|
RestConnection(C context) |
Modifier and Type | Method and Description |
---|---|
APIKeyAuthentication |
getAPIAuthenticationType()
Returns the
AuthenticationType from the selected "auth" connection field. |
AuthenticationType |
getAuthenticationType()
Returns the
AuthenticationType from the selected "auth" connection field. |
String |
getAWSAccessKey()
Returns the AWS access key value from "awsAccessKey" connection field.
|
String |
getAWSRegion()
Returns the AWS Service from the "awsRegion" connection field value, if the selected field is not "CUSTOM".
|
String |
getAWSSecretKey()
Returns the AWS secret key value from "awsSecretKey" connection field.
|
String |
getAWSService()
Returns the AWS Service from the "awsService" connection field value, if the selected field is not "CUSTOM".
|
protected String |
getConnectionProperty(String key) |
int |
getConnectTimeout()
Returns the connection property for "connectTimeout" field
|
String |
getCookieScope()
Returns the value of the "Cookie Scope" connection property.
|
String |
getCustomAuthCredentials()
Returns the connection property for "customAuthCredentials" field
|
String |
getDomain()
Returns the connection property for "domain" field.
|
String |
getHttpMethod()
Gets the selected HTTP method from the connector action / operation field.
|
OAuth2Context |
getOAuthContext()
Fetches the OAuth2Context from the "oauthContext" connection field.
|
String |
getPassword()
Returns the connection property for "password" field
|
boolean |
getPreemptive()
Retrieves the "preemptive" connection property value
|
PrivateKeyStore |
getPrivateKeyStore()
Returns the connection property "privateCertificate" as a
PrivateKeyStore |
PublicKeyStore |
getPublicKeyStore()
Returns the connection property "publicCertificate" as a
PublicKeyStore |
int |
getReadTimeout()
Returns the connection property for "readTime" field
|
URL |
getUrl()
Gets the connection URL from the connection property "url"
|
String |
getUsername()
Returns the connection property for "username" field
|
String |
getWorkstation()
Returns the connection property for "workstation" field.
|
boolean |
isConnectionPoolingEnabled()
Retrieves the "enableConnectionPooling" connection property value
|
generateConnectionInfo, generateConnectionInfo, getConnector, getContext, getOperationContext
public static final Long DEFAULT_CONNECT_TIMEOUT
public static final Long DEFAULT_READ_TIMEOUT
public RestConnection(C context)
public URL getUrl()
public String getHttpMethod()
public String getDomain()
public String getWorkstation()
public String getUsername()
public String getPassword()
public String getCustomAuthCredentials()
public PrivateKeyStore getPrivateKeyStore()
PrivateKeyStore
public PublicKeyStore getPublicKeyStore()
PublicKeyStore
public String getCookieScope()
public boolean getPreemptive()
public OAuth2Context getOAuthContext()
public AuthenticationType getAuthenticationType()
AuthenticationType
from the selected "auth" connection field.public APIKeyAuthentication getAPIAuthenticationType()
AuthenticationType
from the selected "auth" connection field.public String getAWSAccessKey()
public String getAWSSecretKey()
public String getAWSService()
public String getAWSRegion()
public boolean isConnectionPoolingEnabled()
public int getConnectTimeout()
public int getReadTimeout()