public class OpenAPIOperationConnection extends RestOperationConnection
DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT
Constructor and Description |
---|
OpenAPIOperationConnection(OperationContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
addCookiesToStore(org.apache.http.impl.client.BasicCookieStore cookieStore)
Adds cookies from the apiKeyCustomProperties field into the provided cookie store
if the auth is of type API_KEY and Request Location is set to Cookie
|
protected Map<String,String> |
getAPIAuthenticationKeys()
Returns a map of key values pairs provided in the API Keys custom properties field
for Authentication Type = "API_KEY"
|
APIKeyAuthentication |
getAPIAuthenticationType()
Returns the
AuthenticationType from the selected "auth" connection field. |
RestClient |
getClient()
Creates a OpenAPI client for operation execution
|
org.apache.http.entity.ContentType |
getEntityContentType()
Retrieves the content type from the request cookie.
|
String |
getPath()
Gets the selected Path to execute upon.
|
OpenAPIRequestCookie |
getRequestCookie()
Retrieves the request cookie, which describes schema type and parameters
necessary to make a request
|
OpenAPIResponseCookie |
getResponseCookie()
Retrieves the response cookie, which describes the response schema types
|
boolean |
isAPIAuthentication()
Returns true is selected authentication type is API_KEY
|
protected boolean |
isAPIAuthenticationEnabled(APIKeyAuthentication apiKeyAuthentication)
Returns true if the following is true:
- the authentication type is API_KEY
- authentication type matches the selected api key request location
- has a non-null map of API Key values pairs defined
|
buildRequestConfig, configureCookieScope, doPreemptiveAuthentication, getAuthenticationCredentials, getAuthSchemeProviders, getHttpClient, getHttpContext, getRedirectStrategy, getRetryHandler, useSystemProperties
getAuthenticationType, getAWSAccessKey, getAWSRegion, getAWSSecretKey, getAWSService, getConnectionProperty, getConnectTimeout, getCookieScope, getCustomAuthCredentials, getDomain, getHttpMethod, getOAuthContext, getPassword, getPreemptive, getPrivateKeyStore, getPublicKeyStore, getReadTimeout, getUrl, getUsername, getWorkstation, isConnectionPoolingEnabled
generateConnectionInfo, generateConnectionInfo, getConnector, getContext, getOperationContext
public OpenAPIOperationConnection(OperationContext context)
public RestClient getClient()
getClient
in class RestOperationConnection
protected Map<String,String> getAPIAuthenticationKeys()
public APIKeyAuthentication getAPIAuthenticationType()
AuthenticationType
from the selected "auth" connection field.getAPIAuthenticationType
in class RestConnection<OperationContext>
public boolean isAPIAuthentication()
public org.apache.http.entity.ContentType getEntityContentType()
BrowseContext.getCustomOperationType()
.
Multiple Content Types are currently not supported.getEntityContentType
in class RestOperationConnection
public String getPath()
public OpenAPIRequestCookie getRequestCookie()
public OpenAPIResponseCookie getResponseCookie()
protected void addCookiesToStore(org.apache.http.impl.client.BasicCookieStore cookieStore)
addCookiesToStore
in class RestOperationConnection
cookieStore
- protected boolean isAPIAuthenticationEnabled(APIKeyAuthentication apiKeyAuthentication)