Uses of Class
com.postman.collection.Response
Package
Description
Encapsulates a Postman JSON collection and emulates functionality of the Postman SDK.
-
Uses of Response in com.postman.collection
Modifier and TypeMethodDescriptionRequest.getResponses()
Return an ArrayList<Response> containing the values in theresponse
property array, or null if none are defined.Modifier and TypeMethodDescriptionCollection.addRequest
(RequestBody reqElement, String name, Response response) Create and add a newrequest
as a top level child item of this collection.void
Request.addResponse
(Response resp) Add a Response object to theresponse
arrayvoid
Request.addResponse
(String requestKey, Response response) Add a response object to the request contained by this collection specified byrequestKey
Modifier and TypeMethodDescriptionCollection.addRequest
(RequestBody newRequest, String name, ArrayList<Response> responses) Convenience method to add a request with a pre-constructed ArrayList<Response
> of response items.void
Request.setResponses
(ArrayList<Response> response) Set the ArrayList<Response> containing the values in theresponse
property array.