Package org.jclouds.http
Class HttpMessage.Builder<T extends HttpMessage.Builder<T>>
java.lang.Object
org.jclouds.http.HttpMessage.Builder<T>
- Direct Known Subclasses:
HttpRequest.Builder
,HttpResponse.Builder
- Enclosing class:
HttpMessage
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionNote that if there's an existing header of the same name, this will only add the new value, not replace it.build()
replaces all headers with the the supplied multimap.payload
(byte[] payload) payload
(com.google.common.io.ByteSource payload) payload
(InputStream payload) removeHeader
(String name) replace all headers that have the same keys as the input multimapreplaceHeader
(String name, String... values) Replace header.replaceHeaders
(com.google.common.collect.Multimap<String, String> headers) replace all headers that have the same keys as the input multimapprotected abstract T
self()
-
Field Details
-
headers
-
payload
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
-
payload
- See Also:
-
payload
- See Also:
-
payload
- See Also:
-
payload
- See Also:
-
payload
- See Also:
-
payload
- See Also:
-
headers
replaces all headers with the the supplied multimap.- See Also:
-
replaceHeaders
replace all headers that have the same keys as the input multimap- See Also:
-
removeHeader
replace all headers that have the same keys as the input multimap- See Also:
-
addHeader
Note that if there's an existing header of the same name, this will only add the new value, not replace it.- See Also:
-
replaceHeader
Replace header.- See Also:
-
build
-
fromHttpMessage
-