Class Message.AbstractBuilder<R extends Message,B extends Message.AbstractBuilder<R,B>>
java.lang.Object
org.netpreserve.jwarc.Message.AbstractBuilder<R,B>
- Direct Known Subclasses:
HttpMessage.AbstractBuilder,WarcRecord.AbstractBuilder
- Enclosing class:
Message
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a header field.addHeaders(Map<String, List<String>> headers) Appends header fields.Sets the message body.body(MediaType contentType, ReadableByteChannel channel, long length) Sets the message body.abstract Rbuild()Finishes building.Sets a header field.version(MessageVersion version) Sets the protocol version of this message or record.
-
Field Details
-
headerMap
-
version
-
bodyChannel
-
-
Constructor Details
-
AbstractBuilder
-
-
Method Details
-
build
Finishes building. -
addHeader
-
addHeaders
-
setHeader
-
version
Sets the protocol version of this message or record. -
body
-
body
Sets the message body. The Content-Length header will be set tolength. The Content-Type header will be set tocontentTypeunless it is null.
-