Package Services.Dependencies
Class UrlDependency
java.lang.Object
Services.Dependencies.UrlDependency
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck_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.
-
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_responsetoreq_index - 1) to detect dependencies. Detected dependencies are added to theDependencyGraph.- Parameters:
response- list of previously analyzed unstructured responsesreq_index- index of the current request in the HAR sequencedependencyGraph- the graph to update with detected dependenciesto- the target node representing the current requestfirst_index_response- index of the first response to consider for dependency checks
-