public abstract class HttpOutputStream
extends java.io.OutputStream
OutputStream
which provides access to the HTTP
trailers.Constructor and Description |
---|
HttpOutputStream() |
Modifier and Type | Method and Description |
---|---|
HttpOutputStream |
addTrailer(java.lang.CharSequence name,
java.lang.CharSequence value)
Adds a new trailer with the specified
name and value . |
HttpOutputStream |
addTrailers(HttpHeaders trailers)
Adds all trailer names and values of
trailer object. |
HttpOutputStream |
setTrailer(java.lang.CharSequence name,
java.lang.CharSequence value)
Sets a trailer with the specified
name and value . |
HttpOutputStream |
setTrailers(HttpHeaders trailers)
Clears the current trailer entries and copies all trailer entries of the specified
trailers object. |
HttpHeaders |
trailers()
Gets the trailers.
|
public HttpOutputStream addTrailer(java.lang.CharSequence name, java.lang.CharSequence value)
name
and value
.name
- the name of the trailer.value
- the value of the trailer.this
.public HttpOutputStream addTrailers(HttpHeaders trailers)
trailer
object.trailers
- the trailers to add.this
.public HttpOutputStream setTrailer(java.lang.CharSequence name, java.lang.CharSequence value)
name
and value
. Any existing trailers with the same name are
overwritten.name
- the name of the trailer.value
- the value of the trailer.this
.public HttpOutputStream setTrailers(HttpHeaders trailers)
trailers
object.trailers
- the trailers object which contains new values.this
.public HttpHeaders trailers()