mockserver-client-java/src/main/java/org/mockserver/client/MockServerClient.java
public String retrieveRecordedExpectations(HttpRequest httpRequest, Format format) {
        HttpResponse httpResponse = sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("retrieve"))
                .withQueryStringParameter("type", RetrieveType.RECORDED_EXPECTATIONS.name())
                .withQueryStringParameter("format", format.name())
                .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return httpResponse.getBodyAsString();
    }
/**
     * Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requests
     *
     * @param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
     * @param format      the format to retrieve the expectations, either JAVA or JSON
     * @return an array of all expectations that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times
     */
Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requests
@param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
@param format      the format to retrieve the expectations, either JAVA or JSON
@return an array of all expectations that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times
Retrieve the request - response combinations that have been recorded as a list of expectations only those that match the httpRequest parameter are returned use null to retrieve all requests @param httpRequest the http request that is matched against when deciding whether to return each request use null for the parameter to retrieve for all requests @param format the format to retrieve the expectations either JAVA or JSON @return an array of all expectations that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times
public String retrieveRecordedExpectations(HttpRequest httpRequest, Format format) {
        HttpResponse httpResponse = sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("retrieve"))
                .withQueryStringParameter("type", RetrieveType.RECORDED_EXPECTATIONS.name())
                .withQueryStringParameter("format", format.name())
                .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return httpResponse.getBodyAsString();
    }
public String retrieveRecordedExpectations ( HttpRequest httpRequest , Format format ) { HttpResponse httpResponse = sendRequest ( request ( ) . withMethod ( "PUT" ) . withContentType ( APPLICATION_JSON_UTF_8 ) . withPath ( calculatePath ( "retrieve" ) ) . withQueryStringParameter ( "type" , RetrieveType . RECORDED_EXPECTATIONS . name ( ) ) . withQueryStringParameter ( "format" , format . name ( ) ) . withBody ( httpRequest != null ? httpRequestSerializer . serialize ( httpRequest ) : "" , StandardCharsets . UTF_8 ) ) ; return httpResponse . getBodyAsString ( ) ; }
Retrieve the request-response combinations that have been recorded as a list of expectations, only those that match the httpRequest parameter are returned, use null to retrieve all requests
 @param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
 @param format      the format to retrieve the expectations, either JAVA or JSON
 @return an array of all expectations that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times
Retrieve the request - response combinations that have been recorded as a list of expectations only those that match the httpRequest parameter are returned use null to retrieve all requests @param httpRequest the http request that is matched against when deciding whether to return each request use null for the parameter to retrieve for all requests @param format the format to retrieve the expectations either JAVA or JSON @return an array of all expectations that have been recorded by the MockServer in the order they have been received and including duplicates where the same request has been received multiple times