public static interface OutboundMessageContext.StreamProvider
| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getOutputStream(int contentLength)
Get the output stream.
|
java.io.OutputStream getOutputStream(int contentLength)
throws java.io.IOException
writer interceptors are called and written entity is buffered
into the buffer or the buffer exceeds.contentLength - the size of the buffered entity or -1 if the entity exceeded the maximum buffer
size or if the buffering is disabled.message body writers
but the output will be ignored).java.io.IOException - in case of an IO error.