public abstract class VendorExtension extends Object
| Constructor and Description |
|---|
VendorExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFAPIModel apiModel,
ConnectorDescriptorBuilder connectorDescriptor,
CreateMetaDescriptor cmd)
Applies this extension to the connector descriptor being created.
|
void |
apply(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFOperationModel apiOperationModel,
com.mulesoft.connectivity.rest.sdk.internal.descriptor.model.OperationAdapterDescriptor operationAdapterDescriptor,
ConnectorDescriptorBuilder connectorDescriptor,
CreateMetaDescriptor cmd)
Applies operation related things specified by this extension to the connector descriptor being created.
|
String |
getDialectUrl()
An AML dialect with the extension.
|
void |
prepare(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFAPIModel apiModel,
CreateMetaDescriptor cmd)
This gets called before everything else.
|
boolean |
vetoOperation(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFOperationModel apiOperationModel)
Return if the generation of a given operation should be blocked.
|
public String getDialectUrl()
public void prepare(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFAPIModel apiModel,
CreateMetaDescriptor cmd)
throws InvalidVendorExtension
Extensions should use this just to get information about newly created operations that are based on real existing ones.
apiModel - the parsed api-spec, including the extension dataInvalidVendorExtensionpublic void apply(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFAPIModel apiModel,
ConnectorDescriptorBuilder connectorDescriptor,
CreateMetaDescriptor cmd)
throws InvalidVendorExtension
This is called once.
apiModel - the parsed api-spec, including the extension dataconnectorDescriptor - the descriptor to modifycmd - used to add resourcesInvalidVendorExtensionpublic boolean vetoOperation(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFOperationModel apiOperationModel)
throws InvalidVendorExtension
If a single vendor extension returns true from this method, the operation won't be included in the generated connector.
apiOperationModel - the operation to decide uponInvalidVendorExtensionpublic void apply(com.mulesoft.connectivity.rest.sdk.internal.webapi.parser.amf.AMFOperationModel apiOperationModel,
com.mulesoft.connectivity.rest.sdk.internal.descriptor.model.OperationAdapterDescriptor operationAdapterDescriptor,
ConnectorDescriptorBuilder connectorDescriptor,
CreateMetaDescriptor cmd)
throws InvalidVendorExtension
This is called once per operation after the operation has been created.
apiOperationModel - the parsed operation dataoperationAdapterDescriptor - the new operation descriptor object that has just been created for this operationconnectorDescriptor - the descriptor to modifycmd - used to add resourcesInvalidVendorExtensionCopyright © 2023 Mulesoft. All rights reserved.