Package Services.Dependencies
Class HeaderDependency
java.lang.Object
Services.Dependencies.HeaderDependency
Handles analysis of HTTP headers to detect dependencies between requests.
This class iterates over headers of a request and compares them with previous responses to identify dependencies. Certain headers that are commonly dynamic or irrelevant (like User-Agent or Accept-Language) are ignored via a blacklist.
Detected dependencies are stored as EdgeHeader objects in the
DependencyGraph.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck_header_dependency(List<ResponseUnstructured> responseUnstructuredList, int req_index, DependencyGraph dependencyGraph, MyNode to, int first_index_response) Checks for header-based dependencies for a given request.
-
Constructor Details
-
HeaderDependency
public HeaderDependency()
-
-
Method Details
-
check_header_dependency
public static void check_header_dependency(List<ResponseUnstructured> responseUnstructuredList, int req_index, DependencyGraph dependencyGraph, MyNode to, int first_index_response) Checks for header-based dependencies for a given request.For each non-blacklisted header in the target request, this method examines all previous responses (from
first_index_responsetoreq_index - 1) to detect dependencies, updating theDependencyGraphif a dependency is found.- Parameters:
responseUnstructuredList- 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
-