类 AbstractBufferingClientHttpRequest
java.lang.Object
cn.taketoday.http.client.AbstractClientHttpRequest
cn.taketoday.http.client.AbstractBufferingClientHttpRequest
- 所有已实现的接口:
ClientHttpRequest,HttpMessage,HttpOutputMessage,HttpRequest
Base implementation of
ClientHttpRequest that buffers output
in a byte array before sending it over the wire.- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Harry Yang
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected ClientHttpResponseexecuteInternal(HttpHeaders headers) Abstract template method that writes the given headers and content to the HTTP request.protected abstract ClientHttpResponseexecuteInternal(HttpHeaders headers, byte[] bufferedOutput) Abstract template method that writes the given headers and content to the HTTP request.protected OutputStreamgetBodyInternal(HttpHeaders headers) Abstract template method that returns the body.从类继承的方法 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.HttpRequest
getMethod, getMethodValue, getURI
-
字段详细资料
-
bufferedOutput
private final cn.taketoday.util.FastByteArrayOutputStream bufferedOutput
-
-
构造器详细资料
-
AbstractBufferingClientHttpRequest
public AbstractBufferingClientHttpRequest()
-
-
方法详细资料
-
getBodyInternal
从类复制的说明:AbstractClientHttpRequestAbstract template method that returns the body.- 指定者:
getBodyInternal在类中AbstractClientHttpRequest- 参数:
headers- the HTTP headers- 返回:
- the body output stream
-
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, byte[] bufferedOutput) throws IOException Abstract template method that writes the given headers and content to the HTTP request.- 参数:
headers- the HTTP headersbufferedOutput- the body content- 返回:
- the response object for the executed request
- 抛出:
IOException
-