类 MockClientHttpResponse
java.lang.Object
cn.taketoday.mock.http.client.reactive.MockClientHttpResponse
- 所有已实现的接口:
cn.taketoday.http.client.reactive.ClientHttpResponse,cn.taketoday.http.HttpMessage,cn.taketoday.http.ReactiveHttpInputMessage
public class MockClientHttpResponse
extends Object
implements cn.taketoday.http.client.reactive.ClientHttpResponse
Mock implementation of
ClientHttpResponse.- 从以下版本开始:
- 4.0
- 作者:
- Brian Clozel, Rossen Stoyanchev, Harry Yang
-
字段概要
字段 -
构造器概要
构造器构造器说明MockClientHttpResponse(int status) MockClientHttpResponse(cn.taketoday.http.HttpStatusCode status) -
方法概要
修饰符和类型方法说明reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>getBody()reactor.core.publisher.Mono<String>Return the response body aggregated and converted to a String using the charset of the Content-Type response or otherwise as "UTF-8".private Charsetcn.taketoday.util.MultiValueMap<String,cn.taketoday.http.ResponseCookie> cn.taketoday.http.HttpHeadersintcn.taketoday.http.HttpStatusCodevoidvoidvoidsetBody(org.reactivestreams.Publisher<cn.taketoday.core.io.buffer.DataBuffer> body) private cn.taketoday.core.io.buffer.DataBuffertoDataBuffer(String body, Charset charset) toString()从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 cn.taketoday.http.client.reactive.ClientHttpResponse
getId
-
字段详细资料
-
status
private final int status -
headers
private final cn.taketoday.http.HttpHeaders headers -
cookies
-
body
private reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> body
-
-
构造器详细资料
-
MockClientHttpResponse
public MockClientHttpResponse(cn.taketoday.http.HttpStatusCode status) -
MockClientHttpResponse
public MockClientHttpResponse(int status)
-
-
方法详细资料
-
getStatusCode
public cn.taketoday.http.HttpStatusCode getStatusCode()- 指定者:
getStatusCode在接口中cn.taketoday.http.client.reactive.ClientHttpResponse
-
getRawStatusCode
public int getRawStatusCode()- 指定者:
getRawStatusCode在接口中cn.taketoday.http.client.reactive.ClientHttpResponse
-
getHeaders
public cn.taketoday.http.HttpHeaders getHeaders()- 指定者:
getHeaders在接口中cn.taketoday.http.HttpMessage
-
getCookies
- 指定者:
getCookies在接口中cn.taketoday.http.client.reactive.ClientHttpResponse
-
setBody
public void setBody(org.reactivestreams.Publisher<cn.taketoday.core.io.buffer.DataBuffer> body) -
setBody
-
setBody
-
toDataBuffer
-
getBody
public reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> getBody()- 指定者:
getBody在接口中cn.taketoday.http.ReactiveHttpInputMessage
-
getBodyAsString
Return the response body aggregated and converted to a String using the charset of the Content-Type response or otherwise as "UTF-8". -
getCharset
-
toString
-