Package com.boomi.connector.openapi
Class OpenAPIOperationConnection
- java.lang.Object
-
- com.boomi.connector.util.BaseConnection<C>
-
- com.boomi.common.rest.RestConnection<OperationContext>
-
- com.boomi.common.rest.RestOperationConnection
-
- com.boomi.connector.openapi.OpenAPIOperationConnection
-
- Direct Known Subclasses:
OpenAPIDslOperationConnection
public class OpenAPIOperationConnection extends RestOperationConnection
-
-
Field Summary
-
Fields inherited from class com.boomi.common.rest.RestConnection
DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description OpenAPIOperationConnection(OperationContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URLgetAPIKeyCookieURL()Overrides the base implementation to scope API key cookies to the full URL (base URL + operation path).RestClientgetClient()Creates a OpenAPI client for operation executionContentTypegetEntityContentType()Retrieves the content type from the request cookie.StringgetPath()Gets the selected Path to execute upon.OpenAPIRequestCookiegetRequestCookie()Retrieves the request cookie, which describes schema type and parameters necessary to make a requestOpenAPIResponseCookiegetResponseCookie()Retrieves the response cookie, which describes the response schema types-
Methods inherited from class com.boomi.common.rest.RestOperationConnection
addCookiesToStore, buildRequestConfig, configureCookieScope, doPreemptiveAuthentication, getAPIAuthenticationKeys, getAuthenticationCredentials, getAuthSchemeProviders, getHttpClient, getHttpContext, getRedirectStrategy, getRetryHandler, isAPIAuthentication, isAPIAuthenticationEnabled, useSystemProperties
-
Methods inherited from class com.boomi.common.rest.RestConnection
getAPIAuthenticationType, getAuthenticationType, getAWSAccessKey, getAWSRegion, getAWSSecretKey, getAWSService, getConnectionProperty, getConnectTimeout, getCookieScope, getCustomAuthCredentials, getDomain, getHttpMethod, getOAuthContext, getPassword, getPreemptive, getPrivateKeyStore, getPublicKeyStore, getReadTimeout, getUrl, getUsername, getWorkstation, isConnectionPoolingEnabled
-
Methods inherited from class com.boomi.connector.util.BaseConnection
generateConnectionInfo, generateConnectionInfo, getConnector, getContext, getOperationContext
-
-
-
-
Constructor Detail
-
OpenAPIOperationConnection
public OpenAPIOperationConnection(OperationContext context)
-
-
Method Detail
-
getClient
public RestClient getClient()
Creates a OpenAPI client for operation execution- Overrides:
getClientin classRestOperationConnection- Returns:
- the RestClient
-
getEntityContentType
public ContentType getEntityContentType()
Retrieves the content type from the request cookie. This is currently first available request content type based on the selected Path andBrowseContext.getCustomOperationType(). Multiple Content Types are currently not supported.- Overrides:
getEntityContentTypein classRestOperationConnection- Returns:
- the ContentType
-
getPath
public String getPath()
Gets the selected Path to execute upon.- Returns:
- the path
-
getRequestCookie
public OpenAPIRequestCookie getRequestCookie()
Retrieves the request cookie, which describes schema type and parameters necessary to make a request- Returns:
- the request cookie
-
getResponseCookie
public OpenAPIResponseCookie getResponseCookie()
Retrieves the response cookie, which describes the response schema types- Returns:
- the response cookie
-
getAPIKeyCookieURL
protected URL getAPIKeyCookieURL()
Overrides the base implementation to scope API key cookies to the full URL (base URL + operation path).- Overrides:
getAPIKeyCookieURLin classRestOperationConnection- Returns:
- the URL for cookie domain/path
-
-