Class NoApiGatewayService

java.lang.Object
edu.university.ecs.lab.detection.antipatterns.services.NoApiGatewayService

public class NoApiGatewayService extends Object
Service class to detect the presence of an API Gateway configuration in a YAML file.
  • Constructor Details

    • NoApiGatewayService

      public NoApiGatewayService()
  • Method Details

    • checkforApiGateway

      public NoApiGateway checkforApiGateway(MicroserviceSystem microserviceSystem)
      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.