T - the type of objects to writepublic interface HttpPayloadWriter<T>
extends PayloadWriter<T>
OutputStream, but allows for writing of objects of type
T and provides access to the HTTP trailers.| Modifier and Type | Method and Description |
|---|---|
default HttpPayloadWriter<T> |
addTrailer(CharSequence name,
CharSequence value)
Note: modifying trailers after the payload writer is
closed is not allowed. |
default HttpPayloadWriter<T> |
addTrailers(HttpHeaders trailers)
Note: modifying trailers after the payload writer is
closed is not allowed. |
default HttpPayloadWriter<T> |
setTrailer(CharSequence name,
CharSequence value)
Note: modifying trailers after the payload writer is
closed is not allowed. |
default HttpPayloadWriter<T> |
setTrailers(HttpHeaders trailers)
Note: modifying trailers after the payload writer is
closed is not allowed. |
HttpHeaders |
trailers()
Note: modifying trailers after the payload writer is
closed is not allowed. |
HttpHeaders trailers()
closed is not allowed.default HttpPayloadWriter<T> addTrailer(CharSequence name, CharSequence value)
closed is not allowed.name - the name of the trailer.value - the value of the trailer.this.default HttpPayloadWriter<T> addTrailers(HttpHeaders trailers)
closed is not allowed.trailers - the trailers to add.this.default HttpPayloadWriter<T> setTrailer(CharSequence name, CharSequence value)
closed is not allowed.name - the name of the trailer.value - the value of the trailer.this.default HttpPayloadWriter<T> setTrailers(HttpHeaders trailers)
closed is not allowed.trailers - the trailers object which contains new values.this.