Package com.boomi.connector.openapi.dsl
Class OpenAPIDslConnection<C extends BrowseContext>
- java.lang.Object
-
- com.boomi.connector.util.BaseConnection<C>
-
- com.boomi.common.rest.RestConnection<C>
-
- com.boomi.connector.openapi.OpenAPIConnection<C>
-
- com.boomi.connector.openapi.dsl.OpenAPIDslConnection<C>
-
public class OpenAPIDslConnection<C extends BrowseContext> extends OpenAPIConnection<C>
-
-
Field Summary
-
Fields inherited from class com.boomi.common.rest.RestConnection
DEFAULT_CONNECT_TIMEOUT, DEFAULT_READ_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description OpenAPIDslConnection(C context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ObjectType>
getObjectTypes()
Returns a list of ObjectTypes by parsing a json config file part of the custom OpenAPI connector jar.protected io.swagger.v3.oas.models.Operation
getOperation(String customObjectTypeId)
Fetch theOperation
based off of the path value and the selectedBrowseContext.getCustomOperationType()
.customObjectTypeId is a ":" delimited combination of HttpMethod and relative path from the OpenAPI spec.String
getSpec()
Get the location of the target OpenAPI Specification from the json config file with key "spec"-
Methods inherited from class com.boomi.connector.openapi.OpenAPIConnection
getApi, getObjectDefinitions, getOpenAPIParseOption
-
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
-
OpenAPIDslConnection
public OpenAPIDslConnection(C context)
-
-
Method Detail
-
getObjectTypes
public List<ObjectType> getObjectTypes()
Returns a list of ObjectTypes by parsing a json config file part of the custom OpenAPI connector jar. Sets the ObjectTypeId to a customId constructed by combination of method and path fields with ":" as a delimiter. Does the lookup of method and path if an operationId is specified in the configuration.- Overrides:
getObjectTypes
in classOpenAPIConnection<C extends BrowseContext>
- Returns:
- the ObjectType list
-
getOperation
protected io.swagger.v3.oas.models.Operation getOperation(String customObjectTypeId)
Fetch theOperation
based off of the path value and the selectedBrowseContext.getCustomOperationType()
.customObjectTypeId is a ":" delimited combination of HttpMethod and relative path from the OpenAPI spec.- Overrides:
getOperation
in classOpenAPIConnection<C extends BrowseContext>
- Parameters:
customObjectTypeId
- HttpMethod:RelativePath- Returns:
- the Operation
-
getSpec
public String getSpec()
Get the location of the target OpenAPI Specification from the json config file with key "spec"- Overrides:
getSpec
in classOpenAPIConnection<C extends BrowseContext>
- Returns:
- the Spec
-
-