类 AbstractStreamingClientHttpRequest
java.lang.Object
cn.taketoday.http.client.AbstractClientHttpRequest
cn.taketoday.http.client.AbstractStreamingClientHttpRequest
- 所有已实现的接口:
ClientHttpRequest,HttpMessage,HttpOutputMessage,HttpRequest,StreamingHttpOutputMessage
- 直接已知子类:
HttpComponentsClientHttpRequest,JdkClientHttpRequest,JettyClientHttpRequest,ReactorNettyClientRequest,SimpleClientHttpRequest
abstract class AbstractStreamingClientHttpRequest
extends AbstractClientHttpRequest
implements StreamingHttpOutputMessage
Abstract base for
ClientHttpRequest that also implement
StreamingHttpOutputMessage. Ensures that headers and
body are not written multiple times.- 从以下版本开始:
- 4.0 2023/6/1 22:47
- 作者:
- Arjen Poutsma, Harry Yang
-
嵌套类概要
从接口继承的嵌套类/接口 cn.taketoday.http.StreamingHttpOutputMessage
StreamingHttpOutputMessage.Body -
字段概要
字段修饰符和类型字段说明private StreamingHttpOutputMessage.Bodyprivate cn.taketoday.util.FastByteArrayOutputStream -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected final ClientHttpResponseexecuteInternal(HttpHeaders headers) Abstract template method that writes the given headers and content to the HTTP request.protected abstract ClientHttpResponseexecuteInternal(HttpHeaders headers, StreamingHttpOutputMessage.Body body) Abstract template method that writes the given headers and content to the HTTP request.protected final OutputStreamgetBodyInternal(HttpHeaders headers) Abstract template method that returns the body.final voidSet the streaming body callback for this message.从类继承的方法 cn.taketoday.http.client.AbstractClientHttpRequest
assertNotExecuted, execute, getBody, getHeaders从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.http.HttpMessage
getHeaders从接口继承的方法 cn.taketoday.http.HttpOutputMessage
getBody从接口继承的方法 cn.taketoday.http.HttpRequest
getMethod, getMethodValue, getURI
-
字段详细资料
-
body
-
bodyStream
@Nullable private cn.taketoday.util.FastByteArrayOutputStream bodyStream
-
-
构造器详细资料
-
AbstractStreamingClientHttpRequest
AbstractStreamingClientHttpRequest()
-
-
方法详细资料
-
getBodyInternal
从类复制的说明:AbstractClientHttpRequestAbstract template method that returns the body.- 指定者:
getBodyInternal在类中AbstractClientHttpRequest- 参数:
headers- the HTTP headers- 返回:
- the body output stream
-
setBody
从接口复制的说明:StreamingHttpOutputMessageSet the streaming body callback for this message.- 指定者:
setBody在接口中StreamingHttpOutputMessage- 参数:
body- the streaming body callback
-
executeInternal
从类复制的说明:AbstractClientHttpRequestAbstract template method that writes the given headers and content to the HTTP request.- 指定者:
executeInternal在类中AbstractClientHttpRequest- 参数:
headers- the HTTP headers- 返回:
- the response object for the executed request
- 抛出:
IOException
-
executeInternal
protected abstract ClientHttpResponse executeInternal(HttpHeaders headers, @Nullable StreamingHttpOutputMessage.Body body) throws IOException Abstract template method that writes the given headers and content to the HTTP request.- 参数:
headers- the HTTP headersbody- the HTTP body, may benullif no body was set- 返回:
- the response object for the executed request
- 抛出:
IOException
-