org.springframework.mock.http.client.reactive

Class MockClientHttpResponse

  • java.lang.Object
    • org.springframework.mock.http.client.reactive.MockClientHttpResponse
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      reactor.core.publisher.Flux<DataBuffer> getBody()
      Return the body of the message as a Publisher.
      reactor.core.publisher.Mono<java.lang.String> getBodyAsString()
      Return the response body aggregated and converted to a String using the charset of the Content-Type response or otherwise as "UTF-8".
      MultiValueMap<java.lang.String,ResponseCookie> getCookies()
      Return a read-only map of response cookies received from the server.
      HttpHeaders getHeaders()
      Return the headers of this message.
      int getRawStatusCode()
      Return the HTTP status code (potentially non-standard and not resolvable through the HttpStatus enum) as an integer.
      HttpStatus getStatusCode()
      Return the HTTP status code of the response.
      void setBody(org.reactivestreams.Publisher<DataBuffer> body) 
      void setBody(java.lang.String body) 
      void setBody(java.lang.String body, java.nio.charset.Charset charset) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait