mockserver-client-java/src/main/java/org/mockserver/client/MockServerClient.java
public String retrieveActiveExpectations(HttpRequest httpRequest, Format format) {
        HttpResponse httpResponse = sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("retrieve"))
                .withQueryStringParameter("type", RetrieveType.ACTIVE_EXPECTATIONS.name())
                .withQueryStringParameter("format", format.name())
                .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return httpResponse.getBodyAsString();
    }
/**
     * Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
     *
     * @param httpRequest the http request that is matched against when deciding whether to return each expectation, 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 setup and have not expired
     */
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
@param httpRequest the http request that is matched against when deciding whether to return each expectation, 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 setup and have not expired
Retrieve the active expectations match the httpRequest parameter use null for the parameter to retrieve all expectations @param httpRequest the http request that is matched against when deciding whether to return each expectation 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 setup and have not expired
public String retrieveActiveExpectations(HttpRequest httpRequest, Format format) {
        HttpResponse httpResponse = sendRequest(
            request()
                .withMethod("PUT")
                .withContentType(APPLICATION_JSON_UTF_8)
                .withPath(calculatePath("retrieve"))
                .withQueryStringParameter("type", RetrieveType.ACTIVE_EXPECTATIONS.name())
                .withQueryStringParameter("format", format.name())
                .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
        );
        return httpResponse.getBodyAsString();
    }
public String retrieveActiveExpectations ( HttpRequest httpRequest , Format format ) { HttpResponse httpResponse = sendRequest ( request ( ) . withMethod ( "PUT" ) . withContentType ( APPLICATION_JSON_UTF_8 ) . withPath ( calculatePath ( "retrieve" ) ) . withQueryStringParameter ( "type" , RetrieveType . ACTIVE_EXPECTATIONS . name ( ) ) . withQueryStringParameter ( "format" , format . name ( ) ) . withBody ( httpRequest != null ? httpRequestSerializer . serialize ( httpRequest ) : "" , StandardCharsets . UTF_8 ) ) ; return httpResponse . getBodyAsString ( ) ; }
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
 @param httpRequest the http request that is matched against when deciding whether to return each expectation, 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 setup and have not expired
Retrieve the active expectations match the httpRequest parameter use null for the parameter to retrieve all expectations @param httpRequest the http request that is matched against when deciding whether to return each expectation 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 setup and have not expired