Uses of Class
com.postman.collection.RequestBody
Packages that use RequestBody
Package
Description
Encapsulates a Postman JSON collection and emulates functionality of the Postman SDK.
-
Uses of RequestBody in com.postman.collection
Methods in com.postman.collection that return RequestBodyModifier and TypeMethodDescriptionResponse.getOriginalRequest()Get the value of theoriginalRequestfor this response as a RequestBody, or null if it has not been set.Request.getRequestBody()Return the object containing the values in therequestproperty, or null if this item does not contain a request (e.g., is a folder);Methods in com.postman.collection with parameters of type RequestBodyModifier and TypeMethodDescriptionCollection.addRequest(RequestBody reqElement, String name) Convenience method to add a newrequestitem as a top level child item of this collectionCollection.addRequest(RequestBody reqElement, String name, int position) Add a new request to this collection at the specified position in the array ofrequestelementsCollection.addRequest(RequestBody reqElement, String name, Response response) Create and add a newrequestas a top level child item of this collection.Collection.addRequest(RequestBody newRequest, String name, ArrayList<Response> responses) Convenience method to add a request with a pre-constructed ArrayList<Response> of response items.voidResponse.setOriginalRequest(RequestBody originalRequest) Set the value of theoriginalRequestpropertyvoidRequest.setRequestBody(RequestBody request) Set the object containing the values in therequestpropertyConstructors in com.postman.collection with parameters of type RequestBodyModifierConstructorDescriptionRequest(RequestBody req, String name) Create a request with the specific name and pre-populatedRequestBody.Response(String name, RequestBody originalRequest, int code, String status, String _postman_previewlanguage, ArrayList<Cookie> cookie, String body) Response(String name, RequestBody req, String status, int code, String body)