Package com.axway.apim.api.specification
Class OAS3xSpecification
- java.lang.Object
-
- com.axway.apim.api.specification.APISpecification
-
- com.axway.apim.api.specification.OAS3xSpecification
-
public class OAS3xSpecification extends APISpecification
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.axway.apim.api.specification.APISpecification
APISpecification.APISpecType
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVERS-
Fields inherited from class com.axway.apim.api.specification.APISpecification
apiSpecificationContent, apiSpecificationFile, filterConfig, mapper
-
-
Constructor Summary
Constructors Constructor Description OAS3xSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureBasePath(String backendBasePath, API api)com.fasterxml.jackson.databind.node.ObjectNodecreateObjectNode(String key, String value)booleanequals(Object other)voidfilterAPISpecification()APISpecification.APISpecTypegetAPIDefinitionType()byte[]getApiSpecificationContent()StringgetDescription()inthashCode()voidoverrideServerSection(String backendBasePath)booleanparse(byte[] apiSpecificationContent)voidupdateBasePath(String basePath, String host)voidupdateServerSection(String backendBasePath, String serverUrl)-
Methods inherited from class com.axway.apim.api.specification.APISpecification
compareJSON, compareString, getApiSpecificationFile, setApiSpecificationFile, setFilterConfig, setMapperForDataFormat
-
-
-
-
Field Detail
-
SERVERS
public static final String SERVERS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAPIDefinitionType
public APISpecification.APISpecType getAPIDefinitionType() throws AppException
- Specified by:
getAPIDefinitionTypein classAPISpecification- Throws:
AppException
-
filterAPISpecification
public void filterAPISpecification()
- Overrides:
filterAPISpecificationin classAPISpecification
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classAPISpecification
-
getApiSpecificationContent
public byte[] getApiSpecificationContent()
- Specified by:
getApiSpecificationContentin classAPISpecification
-
updateBasePath
public void updateBasePath(String basePath, String host)
- Specified by:
updateBasePathin classAPISpecification
-
createObjectNode
public com.fasterxml.jackson.databind.node.ObjectNode createObjectNode(String key, String value)
-
configureBasePath
public void configureBasePath(String backendBasePath, API api) throws AppException
- Specified by:
configureBasePathin classAPISpecification- Throws:
AppException
-
updateServerSection
public void updateServerSection(String backendBasePath, String serverUrl) throws MalformedURLException
- Throws:
MalformedURLException
-
overrideServerSection
public void overrideServerSection(String backendBasePath)
-
parse
public boolean parse(byte[] apiSpecificationContent) throws AppException- Overrides:
parsein classAPISpecification- Throws:
AppException
-
equals
public boolean equals(Object other)
- Overrides:
equalsin classAPISpecification
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAPISpecification
-
-