Class NoApiGatewayService
java.lang.Object
edu.university.ecs.lab.detection.antipatterns.services.NoApiGatewayService
Service class to detect the presence of an API Gateway configuration in a YAML file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckforApiGateway
(MicroserviceSystem microserviceSystem) Checks if the YAML file contains configuration indicating an API Gateway.private boolean
containsApiGatewayConfiguration
(com.google.gson.JsonObject data) Checks if the given JsonObject contains the "cloud" or "gateway" configuration.
-
Constructor Details
-
NoApiGatewayService
public NoApiGatewayService()
-
-
Method Details
-
checkforApiGateway
Checks if the YAML file contains configuration indicating an API Gateway.- Returns:
- NoApiGateway object that contains true if an API Gateway configuration is detected, NoApiGateway object that contains false otherwise.
-
containsApiGatewayConfiguration
private boolean containsApiGatewayConfiguration(com.google.gson.JsonObject data) Checks if the given JsonObject contains the "cloud" or "gateway" configuration.- Parameters:
data
- The JsonObject to check.- Returns:
- true if the configuration is found, false otherwise.
-