Package com.axway.apim.api.specification
Class Swagger1xSpecification
- java.lang.Object
-
- com.axway.apim.api.specification.APISpecification
-
- com.axway.apim.api.specification.Swagger1xSpecification
-
public class Swagger1xSpecification extends APISpecification
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.axway.apim.api.specification.APISpecification
APISpecification.APISpecType
-
-
Field Summary
-
Fields inherited from class com.axway.apim.api.specification.APISpecification
apiSpecificationContent, apiSpecificationFile, filterConfig, mapper
-
-
Constructor Summary
Constructors Constructor Description Swagger1xSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureBasePath(String backendBasePath, API api)APISpecification.APISpecTypegetAPIDefinitionType()byte[]getApiSpecificationContent()StringgetDescription()booleanparse(byte[] apiSpecificationContent)voidupdateBasePath(String basePath, String host)-
Methods inherited from class com.axway.apim.api.specification.APISpecification
compareJSON, compareString, equals, filterAPISpecification, getApiSpecificationFile, hashCode, setApiSpecificationFile, setFilterConfig, setMapperForDataFormat
-
-
-
-
Method Detail
-
getAPIDefinitionType
public APISpecification.APISpecType getAPIDefinitionType() throws AppException
- Specified by:
getAPIDefinitionTypein classAPISpecification- Throws:
AppException
-
getApiSpecificationContent
public byte[] getApiSpecificationContent()
- Specified by:
getApiSpecificationContentin classAPISpecification
-
updateBasePath
public void updateBasePath(String basePath, String host)
- Specified by:
updateBasePathin classAPISpecification
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classAPISpecification
-
configureBasePath
public void configureBasePath(String backendBasePath, API api) throws AppException
- Specified by:
configureBasePathin classAPISpecification- Throws:
AppException
-
parse
public boolean parse(byte[] apiSpecificationContent) throws AppException- Overrides:
parsein classAPISpecification- Throws:
AppException
-
-