Package org.omegazero.http.common
Class HTTPMessageTrailers
java.lang.Object
org.omegazero.common.util.SimpleAttachmentContainer
org.omegazero.http.common.HTTPHeaderContainer
org.omegazero.http.common.HTTPMessageTrailers
- All Implemented Interfaces:
Serializable
,org.omegazero.common.util.AttachmentContainer
Represents HTTP trailers (headers sent after a request or response body).
- Since:
- 1.2.1
- See Also:
-
Field Summary
Fields inherited from class org.omegazero.http.common.HTTPHeaderContainer
headerFields
Fields inherited from class org.omegazero.common.util.SimpleAttachmentContainer
attachments
-
Constructor Summary
ConstructorsConstructorDescriptionHTTPMessageTrailers
(HTTPMessage httpMessage, HTTPHeaderContainer trailers) Creates a newHTTPMessageTrailers
instance.HTTPMessageTrailers
(HTTPMessageTrailers trailers) Copies the givenHTTPMessageTrailers
. -
Method Summary
Methods inherited from class org.omegazero.http.common.HTTPHeaderContainer
addHeader, addHeader, appendHeader, appendHeader, appendHeader, checkLocked, deleteHeader, deleteHeader, editHeader, extractHeader, extractHeaders, fromLegacy, getHeader, getHeader, getHeader, getHeader, getHeaderCount, headerExists, headerIterator, headerNameCount, headerNameSet, headers, headerSet, setHeader, toString
Methods inherited from class org.omegazero.common.util.SimpleAttachmentContainer
getAttachment, hasAttachment, removeAttachment, setAttachment
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.omegazero.common.util.AttachmentContainer
requireAttachment
-
Constructor Details
-
HTTPMessageTrailers
Creates a newHTTPMessageTrailers
instance.Note that no deep copy of the trailers will be created, meaning changes made to the given
HTTPHeaderContainer
will reflect on thisHTTPMessageTrailers
.- Parameters:
httpMessage
- TheHTTPMessage
these trailers belong totrailers
- The trailers
-
HTTPMessageTrailers
Copies the givenHTTPMessageTrailers
.This does not create a copy of the stored
HTTPMessage
.- Parameters:
trailers
- TheHTTPMessageTrailers
to copy from- See Also:
-
-
Method Details
-
getHttpMessage
Returns theHTTPMessage
this trailer data belongs to.- Returns:
- The
HTTPMessage
-