Class UrlDependency

java.lang.Object
Services.Dependencies.UrlDependency

public class UrlDependency extends Object
Handles the detection of dependencies based on the URL paths of HTTP requests.

This class inspects the path segments of the target request's URL and compares them with previous responses to identify potential dependencies. Detected dependencies are added to the DependencyGraph.

  • Constructor Details

    • UrlDependency

      public UrlDependency()
  • Method Details

    • check_url_dependencies

      public static void check_url_dependencies(List<ResponseUnstructured> response, int req_index, DependencyGraph dependencyGraph, MyNode to, int first_index_response)
      Checks for URL-based dependencies for a given request.

      For each segment in the target request's URL path, this method examines all previous responses (from first_index_response to req_index - 1) to detect dependencies. Detected dependencies are added to the DependencyGraph.

      Parameters:
      response - list of previously analyzed unstructured responses
      req_index - index of the current request in the HAR sequence
      dependencyGraph - the graph to update with detected dependencies
      to - the target node representing the current request
      first_index_response - index of the first response to consider for dependency checks