T - the type parameterpublic class WechatRequestEntity<T>
extends org.springframework.http.RequestEntity<T>
org.springframework.http.RequestEntity.BodyBuilder, org.springframework.http.RequestEntity.HeadersBuilder<B extends org.springframework.http.RequestEntity.HeadersBuilder<B>>, org.springframework.http.RequestEntity.UriTemplateRequestEntity<T>| Modifier and Type | Field and Description |
|---|---|
private Consumer<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>> |
responseBodyConsumer
The Response body consumer.
|
| Constructor and Description |
|---|
WechatRequestEntity(T body,
org.springframework.util.MultiValueMap<String,String> headers,
org.springframework.http.HttpMethod method,
URI url,
Type type,
Consumer<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>> responseBodyConsumer)
Instantiates a new Wechat request entity.
|
| Modifier and Type | Method and Description |
|---|---|
WechatRequestEntity<T> |
headers(org.springframework.http.HttpHeaders httpHeaders)
Headers wechat request entity.
|
static WechatRequestEntity<?> |
of(org.springframework.http.RequestEntity<?> requestEntity,
Consumer<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>> responseBodyConsumer)
Of wechat request entity.
|
private final Consumer<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>> responseBodyConsumer
public WechatRequestEntity(T body, org.springframework.util.MultiValueMap<String,String> headers, org.springframework.http.HttpMethod method, URI url, Type type, Consumer<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>> responseBodyConsumer)
body - the bodyheaders - the headersmethod - the methodurl - the urltype - the typeresponseBodyConsumer - the response body consumerpublic WechatRequestEntity<T> headers(org.springframework.http.HttpHeaders httpHeaders)
httpHeaders - the http headerspublic static WechatRequestEntity<?> of(org.springframework.http.RequestEntity<?> requestEntity, Consumer<org.springframework.http.ResponseEntity<com.fasterxml.jackson.databind.node.ObjectNode>> responseBodyConsumer)
requestEntity - the request entityresponseBodyConsumer - the response body consumerCopyright © 2021. All rights reserved.