Uses of Class
com.postman.collection.RequestBody
Package
Description
Encapsulates a Postman JSON collection and emulates functionality of the Postman SDK.
-
Uses of RequestBody in com.postman.collection
Modifier and TypeMethodDescriptionResponse.getOriginalRequest()
Get the value of theoriginalRequest
for this response as a RequestBody, or null if it has not been set.Request.getRequestBody()
Return the object containing the values in therequest
property, or null if this item does not contain a request (e.g., is a folder);Modifier and TypeMethodDescriptionCollection.addRequest
(RequestBody reqElement, String name) Convenience method to add a newrequest
item 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 ofrequest
elementsCollection.addRequest
(RequestBody reqElement, String name, Response response) Create and add a newrequest
as 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.void
Response.setOriginalRequest
(RequestBody originalRequest) Set the value of theoriginalRequest
propertyvoid
Request.setRequestBody
(RequestBody request) Set the object containing the values in therequest
propertyModifierConstructorDescriptionRequest
(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)