Package Services.Dependencies
Class BodyDependency
java.lang.Object
Services.Dependencies.BodyDependency
Handles analysis of request bodies (POST/PUT) to detect dependencies between requests.
This class inspects the request payloads in different formats:
- application/x-www-form-urlencoded
- application/json (objects and arrays)
DependencyGraph based on detected dependencies between requests.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheck_body_dependency(List<ResponseUnstructured> responseUnstructuredList, int req_index, DependencyGraph dependencyGraph, MyNode to, int first_index_response) Checks for dependencies in the body of a POST or PUT request.
-
Constructor Details
-
BodyDependency
public BodyDependency()
-
-
Method Details
-
check_body_dependency
public static void check_body_dependency(List<ResponseUnstructured> responseUnstructuredList, int req_index, DependencyGraph dependencyGraph, MyNode to, int first_index_response) throws IOException Checks for dependencies in the body of a POST or PUT request.If the request body is form-urlencoded, it delegates to
check_body_urleconded_dep(List, int, DependencyGraph, MyNode, int). If the body is JSON, it parses it and delegates tocheck_application_json_dep(List, Object, String, int, DependencyGraph, MyNode, int).- 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- Throws:
IOException- if reading or parsing the request body fails
-