public class MgwDefinitionBuilder extends Object
Implementation contains the methods required to build a valid definition object model from a definition file.
| Constructor and Description |
|---|
MgwDefinitionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static void |
FindUnusedAPIInformation()
To find out the api information which is not used for code generation but included in the definitions.yaml
|
static String |
getApiRequestInterceptor(String basePath)
Get the API-level request interceptor of an API.
|
static String |
getApiResponseInterceptor(String basePath)
Get the API-level response interceptor of an API.
|
static String |
getBasePath(String apiName,
String apiVersion)
Get basePath from the definition.yaml.
|
static APICorsConfigurationDTO |
getCorsConfiguration(String basePath) |
static EndpointListRouteDTO |
getProdEndpointList(String basePath) |
static String |
getRequestInterceptor(String basePath,
String path,
String operation)
Get the request interceptor for a given resource in an API.
|
static MgwEndpointConfigDTO |
getResourceEpConfigForCodegen(String basePath,
String path,
String operation) |
static String |
getResponseInterceptor(String basePath,
String path,
String operation)
Get the response interceptor for a given resource in an API.
|
static EndpointListRouteDTO |
getSandEndpointList(String basePath) |
static String |
getSecurity(String basePath) |
static String |
getThrottlePolicy(String basePath,
String path,
String operation) |
public static String getBasePath(String apiName, String apiVersion)
apiName - API nameapiVersion - API versionpublic static EndpointListRouteDTO getProdEndpointList(String basePath)
public static EndpointListRouteDTO getSandEndpointList(String basePath)
public static APICorsConfigurationDTO getCorsConfiguration(String basePath)
public static MgwEndpointConfigDTO getResourceEpConfigForCodegen(String basePath, String path, String operation)
public static String getRequestInterceptor(String basePath, String path, String operation)
basePath - basePath of the APIpath - path variable of the resourceoperation - operation of the resourcepublic static String getResponseInterceptor(String basePath, String path, String operation)
basePath - basePath of the APIpath - path variable of the resourceoperation - operation of the resourcepublic static String getThrottlePolicy(String basePath, String path, String operation)
public static String getApiRequestInterceptor(String basePath)
basePath - basePath of the APIpublic static String getApiResponseInterceptor(String basePath)
basePath - basePath of the APIpublic static void FindUnusedAPIInformation()
Copyright © 2019 WSO2. All rights reserved.