public abstract class RestConnectAPIModel<T extends Operation> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.raml.v2.api.model.v10.api.Api |
api |
protected String |
apiName |
protected String |
artifactId |
static String |
DEFAULT_VERSION |
protected String |
groupId |
protected static org.apache.logging.log4j.Logger |
logger |
protected List<T> |
operations |
protected List<APISecurityScheme> |
securitySchemes |
protected String |
version |
static String |
VERSION_URI_PARAM |
static String |
VERSION_URI_PARAM_REGEX |
| Constructor and Description |
|---|
RestConnectAPIModel(RestConnectAPIModelBuilder<?,?> builder) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
buildOperationsModel()
Iterate over the RAML files and build a org.mule.connectivity.model with all operations that will be used later
by the template to applyTemplate code
|
protected abstract T |
createOperation(org.raml.v2.api.model.v10.methods.Method method) |
String |
getApiDescription() |
static org.raml.v2.api.model.v10.api.Api |
getAPIFromRamlFile(File raml) |
String |
getApiName() |
String |
getArtifactId() |
String |
getBaseUri() |
protected abstract String |
getDefaultArtifactId() |
protected abstract String |
getDefaultGroupId() |
protected String |
getDefaultVersion() |
String |
getGroupId() |
List<T> |
getOperations() |
List<APISecurityScheme> |
getSecuritySchemes() |
String |
getVersion() |
public static final String DEFAULT_VERSION
public static final String VERSION_URI_PARAM
public static final String VERSION_URI_PARAM_REGEX
protected static final org.apache.logging.log4j.Logger logger
protected final org.raml.v2.api.model.v10.api.Api api
protected final List<APISecurityScheme> securitySchemes
protected final String apiName
protected String groupId
protected String artifactId
protected String version
public RestConnectAPIModel(RestConnectAPIModelBuilder<?,?> builder) throws GenerationException
GenerationExceptionprotected String getDefaultVersion()
public List<T> buildOperationsModel() throws GenerationException
GenerationExceptionpublic static org.raml.v2.api.model.v10.api.Api getAPIFromRamlFile(File raml)
public List<APISecurityScheme> getSecuritySchemes()
public String getBaseUri()
public String getApiName()
public String getApiDescription()
public String getGroupId()
public String getArtifactId()
public String getVersion()
protected abstract T createOperation(org.raml.v2.api.model.v10.methods.Method method) throws UnsupportedMediaTypeException
UnsupportedMediaTypeExceptionprotected abstract String getDefaultGroupId()
protected abstract String getDefaultArtifactId()
Copyright © 2024. All rights reserved.